diff options
author | 2014-09-09 12:19:30 -0700 | |
---|---|---|
committer | 2014-09-09 12:19:30 -0700 | |
commit | 27a5e656c3d6ef22f9cb34de18e1b960da3aa241 (patch) | |
tree | b940544e91d9c4646d5e78e151ed6c4f656c61d4 /tests/PictureTest.cpp | |
parent | f5b6bf775c331784964bfcc9b9ac707dc6a7c62b (diff) |
Allow SkCanvas to be initialized to force conservative rasterclips. This has the following effects:
1. Queries to the current clip will be conservatively large. This can mean the quickReject may return false more often.
2. The conservative clips mean less work is done.
3. Enabled by default for Gpu, Record, and NoSaveLayer canvases.
4. API is private for now.
R=robertphillips@google.com, bsalomon@google.com, mtklein@google.com, junov@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/541593005
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r-- | tests/PictureTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 05aec092c3..3bc91d78a7 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -1570,8 +1570,8 @@ static void test_clip_bound_opt(skiatest::Reporter* reporter) { path2.addOval(rect3); SkIRect clipBounds; SkPictureRecorder recorder; - // Minimalist test set for 100% code coverage of - // SkPictureRecord::updateClipConservativelyUsingBounds + + // Testing conservative-raster-clip that is enabled by PictureRecord { SkCanvas* canvas = recorder.beginRecording(10, 10); canvas->clipPath(invPath, SkRegion::kIntersect_Op); |