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

Issue 751453005: Clip a layer when its render target's render surface is clipped. (Closed)

Created:
6 years, 1 month ago by hush (inactive)
Modified:
6 years ago
Reviewers:
danakj, boliu, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Clip a layer when its render target's render surface is clipped. An empty clip rect of a render surface does not necessarily mean the surface is unclippped. BUG=435797 Committed: https://crrev.com/887bb5444a8474c45fda32bbd750f1a72a21ec49 Cr-Commit-Position: refs/heads/master@{#306481}

Patch Set 1 #

Patch Set 2 : Fix existing unit tests #

Total comments: 2

Patch Set 3 : Added a layer_tree_host_common_unittest #

Total comments: 7

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -5 lines) Patch
M cc/layers/picture_layer_impl_unittest.cc View 1 2 10 chunks +25 lines, -0 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 4 chunks +8 lines, -0 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 5 chunks +14 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
hush (inactive)
Hi! PTAL! A bunch of cc_unittests failed by the way. Not sure if it is ...
6 years, 1 month ago (2014-11-22 04:03:02 UTC) #2
hush (inactive)
PS2: set the viewport size to a non-empty rect before the failed tests.
6 years ago (2014-11-24 20:25:27 UTC) #3
hush (inactive)
enne@: could you take a look?
6 years ago (2014-11-26 18:57:15 UTC) #6
danakj
https://codereview.chromium.org/751453005/diff/40001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/751453005/diff/40001/cc/trees/layer_tree_host_common.cc#newcode395 cc/trees/layer_tree_host_common.cc:395: if (layer->render_target()->render_surface()->is_clipped()) { Sorry for the OOO delays. This ...
6 years ago (2014-11-26 19:05:10 UTC) #9
hush (inactive)
https://codereview.chromium.org/751453005/diff/40001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/751453005/diff/40001/cc/trees/layer_tree_host_common.cc#newcode395 cc/trees/layer_tree_host_common.cc:395: if (layer->render_target()->render_surface()->is_clipped()) { On 2014/11/26 19:05:09, danakj wrote: > ...
6 years ago (2014-11-26 19:06:59 UTC) #10
hush (inactive)
PTAL PS3. I've made sure the test fails with the old if-statement.
6 years ago (2014-11-26 22:30:09 UTC) #11
danakj
Thanks for the test! LGTM w/ some nits https://codereview.chromium.org/751453005/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/751453005/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode2854 cc/trees/layer_tree_host_common_unittest.cc:2854: root.get(), ...
6 years ago (2014-12-02 17:27:16 UTC) #12
hush (inactive)
https://codereview.chromium.org/751453005/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/751453005/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode2854 cc/trees/layer_tree_host_common_unittest.cc:2854: root.get(), gfx::Size(0, 0), &render_surface_layer_list); On 2014/12/02 17:27:16, danakj wrote: ...
6 years ago (2014-12-02 18:12:36 UTC) #13
danakj
Thanks that'd be great.
6 years ago (2014-12-02 19:48:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751453005/80001
6 years ago (2014-12-02 21:48:42 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001)
6 years ago (2014-12-02 22:49:12 UTC) #17
commit-bot: I haz the power
6 years ago (2014-12-02 22:49:53 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/887bb5444a8474c45fda32bbd750f1a72a21ec49
Cr-Commit-Position: refs/heads/master@{#306481}

Powered by Google App Engine
This is Rietveld 408576698