Include SkTypes before using ifdefs.

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
This commit is contained in:
scroggo 2014-07-14 10:25:00 -07:00 коммит произвёл Commit bot
Родитель 24b04fa2ad
Коммит 41b8687417
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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