Chromium Code Reviews
DescriptionRemove ExtractImageRep from the browser frame header painting code.
PaintFrameImagesInRoundRect() would use an intermediate bitmap to
images into, then draw that bitmap with a clip and blendmode back
into the original canvas. We can do this instead with SaveLayer.
This adds a SaveLayer variant that takes an arbitrary PaintFlags, to
allow this use case, and uses that instead of generating an extra
bitmap on the CPU.
While here, we improve the readability of this code some by removing
an always-false if condition (isSrcOver) and moving code closer so
that we prove it is always false and stays that way.
R=bsep@chromium.org, pkasting@chromium.org
BUG=671433
Review-Url: https://codereview.chromium.org/2770943002
Cr-Commit-Position: refs/heads/master@{#458929}
Committed: https://chromium.googlesource.com/chromium/src/+/226e88f271fb6fc8a47110d440c9e12662edec95
Patch Set 1 #
Total comments: 2
Patch Set 2 : header-bitmap: scopedcanvas #Patch Set 3 : header-bitmap: headers #
Messages
Total messages: 20 (11 generated)
|
|||||||||||||||||||||||||||||||||||||