diff options
author | krajcevski <krajcevski@google.com> | 2014-08-13 10:36:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-13 10:36:18 -0700 |
commit | 71614ac7c63fe60dfe971f861e2b2d6325dd0039 (patch) | |
tree | b473e3ac836a6d3c0fc6aaeafced7b267a35d709 /src/gpu/GrSWMaskHelper.h | |
parent | 21b342d19c71fa5abe7e4aa5cfb518fd04cb9d67 (diff) |
Add override to force bitmap rendering
R=robertphillips@google.com
Author: krajcevski@google.com
Review URL: https://codereview.chromium.org/462203002
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index ccd2df865e..f8cce8b277 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 - // amount of work. - bool init(const SkIRect& resultBounds, const SkMatrix* matrix); + // amount of work. allowCompression should be set to false 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 allowCompression = true); // Draw a single rect into the accumulation bitmap using the specified op void draw(const SkRect& rect, SkRegion::Op op, |