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

Side by Side Diff: src/gpu/GrLayerHoister.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrLayerHoister_DEFINED 8 #ifndef GrLayerHoister_DEFINED
9 #define GrLayerHoister_DEFINED 9 #define GrLayerHoister_DEFINED
10 10
11 #define SK_IGNORE_GPU_LAYER_HOISTING
12
13
11 #include "SkPicture.h" 14 #include "SkPicture.h"
12 #include "SkTDArray.h" 15 #include "SkTDArray.h"
13 16
17 #if !defined(SK_IGNORE_GPU_LAYER_HOISTING) && SK_SUPPORT_GPU
18
14 struct GrCachedLayer; 19 struct GrCachedLayer;
15 class GrReplacements; 20 class GrReplacements;
16 class SkGpuDevice; 21 class SkGpuDevice;
17 struct SkRect; 22 struct SkRect;
18 23
19 class GrHoistedLayer { 24 class GrHoistedLayer {
20 public: 25 public:
21 const SkPicture* fPicture; // the picture that actually contains the layer 26 const SkPicture* fPicture; // the picture that actually contains the layer
22 // (not necessarily the top-most picture) 27 // (not necessarily the top-most picture)
23 GrCachedLayer* fLayer; 28 GrCachedLayer* fLayer;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 118
114 private: 119 private:
115 /** Update the GrTexture in 'layer' with its filtered version 120 /** Update the GrTexture in 'layer' with its filtered version
116 @param context Owner of the layer cache (and thus the layers) 121 @param context Owner of the layer cache (and thus the layers)
117 @param props Surface properties 122 @param props Surface properties
118 @param info Layer info for a layer needing filtering prior to bein g composited 123 @param info Layer info for a layer needing filtering prior to bein g composited
119 */ 124 */
120 static void FilterLayer(GrContext* context, const SkSurfaceProps*, const GrH oistedLayer& info); 125 static void FilterLayer(GrContext* context, const SkSurfaceProps*, const GrH oistedLayer& info);
121 126
122 }; 127 };
128 #endif
123 129
124 #endif 130 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698