diff options
author | 2013-11-04 20:10:33 +0000 | |
---|---|---|
committer | 2013-11-04 20:10:33 +0000 | |
commit | ac9d306a92e569e85a7611e9db00943b5b551f1e (patch) | |
tree | 168e141c406948aad89ec41bb88b0c3260de2a5c /src/gpu/GrSWMaskHelper.h | |
parent | 8d8bcf9f88be927f6d7e5167bb9220d62bf8afe3 (diff) |
speed up A8 by creating a new entry-point in SkDraw that blits the path's coverage directly into an A8 target, regardless of the previous pixel values.
R=bsalomon@google.com, mtklein@google.com
Review URL: https://codereview.chromium.org/56453002
git-svn-id: http://skia.googlecode.com/svn/trunk@12118 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index b274e84c66..097f62c048 100644 --- a/src/gpu/GrSWMaskHelper.h +++ b/src/gpu/GrSWMaskHelper.h @@ -48,7 +48,8 @@ public: // 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); + bool init(const SkIRect& resultBounds, const SkMatrix* matrix, + bool zeroPixels = true); // Draw a single rect into the accumulation bitmap using the specified op void draw(const SkRect& rect, SkRegion::Op op, |