Index: src/gpu/GrLayerHoister.cpp |
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp |
index 4a2a7f5b97f35a56cb4388bad156e94e9f535a8d..71c0080d0ef7e6e2756f91ca92d4212df7a59a54 100644 |
--- a/src/gpu/GrLayerHoister.cpp |
+++ b/src/gpu/GrLayerHoister.cpp |
@@ -5,11 +5,6 @@ |
* found in the LICENSE file. |
*/ |
-#include "GrContext.h" |
-#include "GrLayerCache.h" |
-#include "GrLayerHoister.h" |
-#include "GrRecordReplaceDraw.h" |
- |
#include "SkBigPicture.h" |
#include "SkCanvas.h" |
#include "SkImageFilterCache.h" |
@@ -18,6 +13,14 @@ |
#include "SkSpecialImage.h" |
#include "SkSurface.h" |
+#include "GrLayerHoister.h" |
+ |
+#if !defined(SK_IGNORE_GPU_LAYER_HOISTING) && SK_SUPPORT_GPU |
+ |
+#include "GrContext.h" |
+#include "GrLayerCache.h" |
+#include "GrRecordReplaceDraw.h" |
+ |
// Create the layer information for the hoisted layer and secure the |
// required texture/render target resources. |
static void prepare_for_hoisting(GrLayerCache* layerCache, |
@@ -395,3 +398,5 @@ void GrLayerHoister::End(GrContext* context) { |
layerCache->end(); |
} |
+ |
+#endif |