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

Unified Diff: src/gpu/GrSWMaskHelper.h

Issue 462203002: Add override to force bitmap rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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/GrClipMaskManager.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrSWMaskHelper.h
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index ccd2df865e420038d056af10d254c5cfabdf4902..f5258f57791b380e040248e412d7a5fa979b58ea 100644
--- a/src/gpu/GrSWMaskHelper.h
+++ b/src/gpu/GrSWMaskHelper.h
@@ -49,8 +49,9 @@ public:
// set up the internal state in preparation for draws. Since many masks
// may be accumulated in the helper during creation, "resultBounds"
// allows the caller to specify the region of interest - to limit the
robertphillips 2014/08/13 14:03:17 Would forceBitmap be better named allowCompression
krajcevski 2014/08/13 15:16:34 Yea, that way the logic will be clearer without do
- // amount of work.
- bool init(const SkIRect& resultBounds, const SkMatrix* matrix);
+ // amount of work. forceBitmap should be set to true if you plan on using
+ // your own texture to draw into, and not a scratch texture via getTexture().
+ bool init(const SkIRect& resultBounds, const SkMatrix* matrix, bool forceBitmap = false);
// Draw a single rect into the accumulation bitmap using the specified op
void draw(const SkRect& rect, SkRegion::Op op,
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698