diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-28 15:02:37 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-28 15:02:37 +0000 |
commit | 5889e309961b865fbb2c4ed7f704c315c005a63c (patch) | |
tree | 3a05fa56aefa0fc70ad8f3ef2413517a98799534 /src | |
parent | 6be0ab308363a1de6e8d1d04a1c35baed315238a (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')
-rw-r--r-- | src/core/SkPictureRecorder.cpp | 2 |
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 |