skia2/include/core/SkBarriers.h
mtklein a64c48f4f9 Move sync code to include/, switch from using platform define to a proxy header in core/
This fixes two problems:
  1)  #include SK_SOME_DEFINE doesn't work well for all our clients.
  2)  Things in include/ are #including things in src/, which we don't like.

TBR=reed@google.com

BUG=skia:

Review URL: https://codereview.chromium.org/862983002
2015-01-21 13:13:31 -08:00

16 lines
390 B
C

#ifndef SkBarriers_DEFINED
#define SkBarriers_DEFINED
// This file is not part of the public Skia API.
#include "SkTypes.h"
#if SK_HAS_COMPILER_FEATURE(thread_sanitizer)
#include "../ports/SkBarriers_tsan.h"
#elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64)
#include "../ports/SkBarriers_arm.h"
#else
#include "../ports/SkBarriers_x86.h"
#endif
#endif//SkBarriers_DEFINED