diff options
author | Mike Klein <mtklein@chromium.org> | 2018-02-07 12:54:27 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-07 18:18:52 +0000 |
commit | e083f7c9f2ed6640866e2d974aabb98e6f3d0712 (patch) | |
tree | d80ce32276699b7401ff70537387fe97d441272d /docs | |
parent | 4043702b9ac251a8191f12a5f6cbf5e4bc95be01 (diff) |
Reland "remove SkCanvas::kIsOpaque_SaveLayerFlag"
This reverts the revert 9ff8c8c073ba553dc8b22bb9aacc23949292f72f.
Original:
This is a performance-only hint that no one but fuzzers
is using. It's even explicitly filtered out in Android.
The fuzzers have noticed they can trick us into allocating
uninitialized memory and treating it as opaque, blending
uninitialized pixels, etc.
Since no one's using this, we can just kill the bit.
Bug: skia:7566, chromium:808830
Docs-Preview: https://skia.org/?cl=105282
Change-Id: I4326c663f777aa373ff7ec9f319519da9729350d
Reviewed-on: https://skia-review.googlesource.com/105282
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkCanvas_Reference.bmh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/SkCanvas_Reference.bmh b/docs/SkCanvas_Reference.bmh index 6e6d6a7456..f090207882 100644 --- a/docs/SkCanvas_Reference.bmh +++ b/docs/SkCanvas_Reference.bmh @@ -1682,7 +1682,6 @@ documentation purposes, this enum is named rather than anonymous #Line # sets SaveLayerRec options ## #Code enum { - kIsOpaque_SaveLayerFlag = 1 << 0, kPreserveLCDText_SaveLayerFlag = 1 << 1, kInitWithPrevious_SaveLayerFlag = 1 << 2, kDontClipToLayer_Legacy_SaveLayerFlag = kDontClipToLayer_PrivateSaveLayerFlag, @@ -1692,11 +1691,6 @@ documentation purposes, this enum is named rather than anonymous SaveLayerFlags provides options that may be used in any combination in SaveLayerRec, defining how Layer allocated by saveLayer operates. -#Const kIsOpaque_SaveLayerFlag 1 - Creates Layer without transparency. Flag is ignored if Layer Paint contains - Image_Filter or Color_Filter. -## - #Const kPreserveLCDText_SaveLayerFlag 2 Creates Layer for LCD text. Flag is ignored if Layer Paint contains Image_Filter or Color_Filter. @@ -1824,8 +1818,8 @@ Sets fBounds, fPaint, and fBackdrop to nullptr. Clears fSaveLayerFlags. #Example SkCanvas::SaveLayerRec rec1; - rec1.fSaveLayerFlags = SkCanvas::kIsOpaque_SaveLayerFlag; - SkCanvas::SaveLayerRec rec2(nullptr, nullptr, SkCanvas::kIsOpaque_SaveLayerFlag); + rec1.fSaveLayerFlags = SkCanvas::kPreserveLCDText_SaveLayerFlag; + SkCanvas::SaveLayerRec rec2(nullptr, nullptr, SkCanvas::kPreserveLCDText_SaveLayerFlag); SkDebugf("rec1 %c= rec2\n", rec1.fBounds == rec2.fBounds && rec1.fPaint == rec2.fPaint && rec1.fBackdrop == rec2.fBackdrop |