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

Issue 2795963002: cc: Reduce surface contents scale adjustments. (Closed)

Created:
3 years, 8 months ago by reveman
Modified:
3 years, 8 months ago
Reviewers:
ajuma, sky
CC:
cc-bugs_chromium.org, chromium-reviews, danakj, jaydasika, Jun Mukai, oshima, weiliangc
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Reduce surface contents scale adjustments. This avoids updating the surface contents scale based on the current transform if layer_transforms_should_scale_layer_contents is false. The result is that render surfaces size doesn't need to be adjusted during transform animations in the Chrome OS UI. This is a prerequisite to caching of render surfaces and is the preferred behavior as UI raster scale should not change during these animations. BUG=708513 TEST=cc_unittests --gtest_filter=LayerTreeHostCommonTest.CanAdjustRasterScaleTest CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2795963002 Cr-Commit-Position: refs/heads/master@{#462684} Committed: https://chromium.googlesource.com/chromium/src/+/b2b99a3b809f5ecbad2c3c9106dda9835e39a247

Patch Set 1 #

Total comments: 4

Patch Set 2 : use layer_transforms_should_scale_layer_contents and dsf #

Patch Set 3 : add unit test #

Patch Set 4 : fix tests #

Patch Set 5 : Fix SnapshotAuraTests #

Patch Set 6 : apply scale for copy requests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -8 lines) Patch
M cc/layers/render_surface_impl_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/draw_property_utils.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 4 chunks +52 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 5 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
reveman
Hi, we need to prevent this scale factor adjustment before we can implement render surface ...
3 years, 8 months ago (2017-04-04 21:12:44 UTC) #3
ajuma
Updating surface scale is really only useful when we're also updating raster scales based on ...
3 years, 8 months ago (2017-04-04 21:41:12 UTC) #5
reveman
PTAL https://codereview.chromium.org/2795963002/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2795963002/diff/1/cc/trees/property_tree.cc#newcode846 cc/trees/property_tree.cc:846: if (transform_node->is_currently_animating) { On 2017/04/04 at 21:41:11, ajuma ...
3 years, 8 months ago (2017-04-05 13:20:15 UTC) #7
ajuma
Thanks, looks good. Please also add a unit test, e.g., something like a tree with ...
3 years, 8 months ago (2017-04-05 13:37:39 UTC) #8
reveman
On 2017/04/05 at 13:37:39, ajuma wrote: > Thanks, looks good. Please also add a unit ...
3 years, 8 months ago (2017-04-05 18:45:43 UTC) #10
ajuma
On 2017/04/05 18:45:43, reveman wrote: > On 2017/04/05 at 13:37:39, ajuma wrote: > > Thanks, ...
3 years, 8 months ago (2017-04-05 21:36:16 UTC) #15
reveman
On 2017/04/05 at 21:36:16, ajuma wrote: > On 2017/04/05 18:45:43, reveman wrote: > > On ...
3 years, 8 months ago (2017-04-05 23:25:51 UTC) #16
reveman
+sky for ui/snapshot A result of this change is that aura snapshots will now return ...
3 years, 8 months ago (2017-04-06 02:31:19 UTC) #22
ajuma
Thanks, cc/ lgtm
3 years, 8 months ago (2017-04-06 13:27:05 UTC) #27
sky
On 2017/04/06 02:31:19, reveman wrote: > +sky for ui/snapshot > > A result of this ...
3 years, 8 months ago (2017-04-06 15:52:08 UTC) #28
reveman
On 2017/04/06 at 15:52:08, sky wrote: > I would assume the test is meant to ...
3 years, 8 months ago (2017-04-06 21:36:34 UTC) #29
sky
Great! I think that means you no longer need me as a reviewer. On Thu, ...
3 years, 8 months ago (2017-04-06 21:48:01 UTC) #32
ajuma
On 2017/04/06 21:36:34, reveman wrote: > On 2017/04/06 at 15:52:08, sky wrote: > > I ...
3 years, 8 months ago (2017-04-06 21:52:36 UTC) #33
reveman
On 2017/04/06 at 21:48:01, sky wrote: > Great! I think that means you no longer ...
3 years, 8 months ago (2017-04-06 21:58:01 UTC) #34
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/2795963002/100001
3 years, 8 months ago (2017-04-06 21:59:00 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 23:40:12 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b2b99a3b809f5ecbad2c3c9106dd...

Powered by Google App Engine
This is Rietveld 408576698