Descriptioncc: nine patch: add occlusion support
Reland of https://codereview.chromium.org/1983803003 with fix for
hidpi screens
When using a NinePatchLayer to draw shadows on windows on ChromeOS
part of patches which are completely transparent are drawn on top of
the window. This prevents for example videos to be promoted into
layers.
This patch introduce an optional property on the NinePatchLayer :
layer_occlusion. When this property is set, we can use it to compute
12 patches to paint the shadow rather than 8 (center omitted). This
prevents drawing on the window's content completely and allows layer
promotion algorithms to promote the windows's content as layer if
possible (in particular with videos).
BUG=603866
TEST=cc_unittests --gtest_filter=NinePatchLayer*
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/258c7d3e78c8f4b2b96c5ade9cddb2d0b1cbfdca
Cr-Commit-Position: refs/heads/master@{#408084}
Patch Set 1 : previous patch #Patch Set 2 : Fix for hidpi screens #
Total comments: 2
Patch Set 3 : Use gfx::RectF #Patch Set 4 : Rebase on ToT before commit #
Messages
Total messages: 28 (13 generated)
|