Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Issue 2749993002: compositor: Change how attributes are set during ui::Layer::Clone(). (Closed)

Created:
3 years, 9 months ago by sadrul
Modified:
3 years, 9 months ago
Reviewers:
danakj
CC:
chromium-reviews, Ian Vollick, jbauman+watch_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

compositor: Change how attributes are set during ui::Layer::Clone(). A solid-color layer with SK_ColorTRANSPARENT color can be marked as opaque, as is done in ash-mus to reduce overdraw (crrev.com/456910). When Clone()ing the Layer, the opaque-ness of the layer is cloned first, and then the color is set. However, ui::Layer can turn off the opaque-ness when setting the color, if color is transparent. So, set up color etc. of a ui::Layer first when cloning, before setting remaining properties. Without this fix, anytime a window is maximized/restored (which uses cloned layers), ash loses the overdraw optimization. BUG=701653 Review-Url: https://codereview.chromium.org/2749993002 Cr-Commit-Position: refs/heads/master@{#457126} Committed: https://chromium.googlesource.com/chromium/src/+/458e50ea1e561feeb779ff7a26310e59b43fc0d6

Patch Set 1 #

Patch Set 2 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M ui/compositor/layer.cc View 2 chunks +11 lines, -10 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
sadrul
3 years, 9 months ago (2017-03-15 04:39:45 UTC) #9
danakj
LGTM
3 years, 9 months ago (2017-03-15 15:23:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749993002/20001
3 years, 9 months ago (2017-03-15 17:30:18 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 17:45:23 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/458e50ea1e561feeb779ff7a2631...

Powered by Google App Engine
This is Rietveld 408576698