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

Unified Diff: include/effects/SkLayerRasterizer.h

Issue 233673002: Create SkLayerRasterizer w/o destroying Builder. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix a typo Created 6 years, 8 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 | « gyp/tests.gypi ('k') | src/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkLayerRasterizer.h
diff --git a/include/effects/SkLayerRasterizer.h b/include/effects/SkLayerRasterizer.h
index fdfb179cb6bab604188c2f20b12f74697e29b757..4a0cd2e94f42e4988538b00012772f9b24f59b3e 100644
--- a/include/effects/SkLayerRasterizer.h
+++ b/include/effects/SkLayerRasterizer.h
@@ -39,10 +39,16 @@ public:
/**
* Pass queue of layers on to newly created layer rasterizer and return it. The builder
- * cannot be used any more after calling this function.
+ * *cannot* be used any more after calling this function.
*/
SkLayerRasterizer* detachRasterizer();
+ /**
+ * Copy queue of layers to a newly created layer rasterizer and return it. The builder
+ * *may* be used after calling this function.
reed1 2014/04/10 19:53:04 Builder b; b.addLayer(A) x = b.copyRasterizer b.ad
scroggo 2014/04/10 20:14:24 Latest patch clarifies things.
+ */
+ SkLayerRasterizer* copyRasterizer();
+
private:
SkDeque* fLayers;
};
@@ -86,6 +92,8 @@ private:
static SkDeque* ReadLayers(SkReadBuffer& buffer);
+ friend class LayerRasterizerTester;
+
typedef SkRasterizer INHERITED;
};
« no previous file with comments | « gyp/tests.gypi ('k') | src/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698