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

Unified Diff: src/gpu/GrLayerHoister.h

Issue 792923002: Apply the layer's image filter to the hoisted image (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix cast Created 6 years 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/GrLayerCache.h ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerHoister.h
diff --git a/src/gpu/GrLayerHoister.h b/src/gpu/GrLayerHoister.h
index 2d68a94a889831cc2158f682d9190583e55d58dc..9668ba60d54cd04693657b0f5c97da42155f11c6 100644
--- a/src/gpu/GrLayerHoister.h
+++ b/src/gpu/GrLayerHoister.h
@@ -13,6 +13,7 @@
struct GrCachedLayer;
class GrReplacements;
+class SkGpuDevice;
struct SkRect;
class GrHoistedLayer {
@@ -102,6 +103,15 @@ public:
@param context Owner of the layer cache (and thus the layers)
*/
static void PurgeCache(GrContext* context);
+
+private:
+ /** Update the GrTexture in 'layer' with its filtered version
+ @param context Owner of the layer cache (and thus the layers)
+ @param device Required by the filtering code
+ @param layer A layer needing filtering prior to being composited
+ */
+ static void FilterLayer(GrContext* context, SkGpuDevice* device, GrCachedLayer* layer);
+
};
#endif
« no previous file with comments | « src/gpu/GrLayerCache.h ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698