Include SkTypes.h from SkDynamicAnnotations.h
authormtklein <mtklein@chromium.org>
Wed, 10 Dec 2014 18:49:42 +0000 (10:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Dec 2014 18:49:42 +0000 (10:49 -0800)
This allows us to control SK_DYNAMIC_ANNOTATIONS_ENABLED by Sk*Config.h files.
This is a no-op today, because we control it from the compiler command line.

BUG=430815

Review URL: https://codereview.chromium.org/787003003

include/core/SkDynamicAnnotations.h

index 2775b38..af8bdb6 100644 (file)
@@ -8,6 +8,9 @@
 #ifndef SkDynamicAnnotations_DEFINED
 #define SkDynamicAnnotations_DEFINED
 
+// Make sure we see anything set via SkUserConfig.h (e.g. SK_DYNAMIC_ANNOTATIONS_ENABLED).
+#include "SkTypes.h"
+
 // This file contains macros used to send out-of-band signals to dynamic instrumentation systems,
 // namely thread sanitizer.  This is a cut-down version of the full dynamic_annotations library with
 // only the features used by Skia.