Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: src/gpu/GrLayerHoister.cpp

Issue 1945413003: Disable Ganesh layer hoister in a more revertable form (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrLayerHoister.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/gpu/GrLayerHoister.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698