From 5889e309961b865fbb2c4ed7f704c315c005a63c Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 28 May 2014 15:02:37 +0000 Subject: [PATCH] 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 --- src/core/SkPictureRecorder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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