diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp index 2985b2dfff..160446797d 100644 --- a/src/core/SkPictureRecorder.cpp +++ b/src/core/SkPictureRecorder.cpp @@ -5,10 +5,6 @@ * found in the LICENSE file. */ -#if SK_SUPPORT_GPU -#include "GrPictureUtils.h" -#endif - #include "SkPictureRecorder.h" #include "SkRecord.h" #include "SkRecordDraw.h" @@ -16,6 +12,12 @@ #include "SkRecordOpts.h" #include "SkTypes.h" +// Must place SK_SUPPORT_GPU after other includes so it is defined in the +// Android framework build. +#if SK_SUPPORT_GPU +#include "GrPictureUtils.h" +#endif + SkPictureRecorder::SkPictureRecorder() {} SkPictureRecorder::~SkPictureRecorder() {}