Include SkTypes before using ifdefs.
authorscroggo <scroggo@google.com>
Mon, 14 Jul 2014 17:25:00 +0000 (10:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Jul 2014 17:25:01 +0000 (10:25 -0700)
Fixes Android framework build.

When building for the Android framework, we depend on SkUserConfig.h
to define things like SK_SUPPORT_GPU. So we cannot have the first
include inside a guard requring SK_SUPPORT_GPU to be defined. Include
SkTypes first, which will pull in SkUserConfig, define the flag, and
allow us to include GrContextFactory.h.

R=reed@google.com, djsollen@google.com

Author: scroggo@google.com

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

tests/ImageNewShaderTest.cpp

index ac6cde0..b4349e0 100644 (file)
@@ -5,6 +5,7 @@
  * found in the LICENSE file.
  */
 
+#include "SkTypes.h"
 #if SK_SUPPORT_GPU
 #include "GrContextFactory.h"
 #endif