aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureRecorder.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-28 15:02:37 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-28 15:02:37 +0000
commit5889e309961b865fbb2c4ed7f704c315c005a63c (patch)
tree3a05fa56aefa0fc70ad8f3ef2413517a98799534 /src/core/SkPictureRecorder.cpp
parent6be0ab308363a1de6e8d1d04a1c35baed315238a (diff)
Include SkTypes to fix Android frameworks build
Since Android's defines are included in SkUserConfig (rather than being defined in the build file), we need to include something that includes SkUserConfig (transitively; meaning just about anything) before we can use any build macros. Include SkTypes, "the correct way to get access to the config system" so that SK_BUILD_FOR_ANDROID is defined before querying it. R=robertphillips@google.com, djsollen@google.com, mtklein@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/294393011 git-svn-id: http://skia.googlecode.com/svn/trunk@14914 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecorder.cpp')
-rw-r--r--src/core/SkPictureRecorder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp
index 844b0e765b..6fa9a06067 100644
--- a/src/core/SkPictureRecorder.cpp
+++ b/src/core/SkPictureRecorder.cpp
@@ -5,6 +5,8 @@
* found in the LICENSE file.
*/
+// Need to include SkTypes first, so that SK_BUILD_FOR_ANDROID is defined.
+#include "SkTypes.h"
#ifdef SK_BUILD_FOR_ANDROID
#include "SkPicturePlayback.h"
#endif