Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed)

Created:
8 years ago by whunt
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

This patch prevents the creation of some render targets by informing the logic that determines if a sub-tree needs an intermediate render target about the ability of descendants in its sub-tree ability to clip themselves. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175919

Patch Set 1 #

Total comments: 11

Patch Set 2 : Reworking the test for creating a layer, should work correctly now. #

Total comments: 5

Patch Set 3 : removed unused function and changed tracking variable from int to bool #

Patch Set 4 : re-adding a previously removed check of the transforms between a layer and its child #

Total comments: 10

Patch Set 5 : moving IsPositiveScaleOrTranslation into gfx::Transform #

Total comments: 6

Patch Set 6 : adding a unit test and renaming adding a unit test and renaming can_clip_self" #

Total comments: 15

Patch Set 7 : Addressing Shawn's feedback. #

Total comments: 7

Patch Set 8 : addressing Dana's feedback #

Total comments: 1

Patch Set 9 : merge up to tip of tree #

Patch Set 10 : addressing new style constraints on virtual inline functions #

Patch Set 11 : more style-complience updates #

Patch Set 12 : small style requirements update #

Patch Set 13 : merging to tip of tree #

Patch Set 14 : another inline virtual change #

Patch Set 15 : very minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -10 lines) Patch
M cc/draw_properties.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M cc/layer.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -1 line 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +119 lines, -2 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -7 lines 0 comments Download
M cc/texture_layer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M cc/texture_layer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M cc/texture_layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M cc/texture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/transform.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
whunt
It appears to make the perspective case in the tab switcher much faster and I ...
8 years ago (2012-12-14 01:56:58 UTC) #1
jamesr
https://codereview.chromium.org/11567034/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11567034/diff/1/cc/layer_tree_host_common.cc#newcode438 cc/layer_tree_host_common.cc:438: float x_scale = xform.matrix().getDouble(0,0); do we have to do ...
8 years ago (2012-12-14 04:31:19 UTC) #2
shawnsingh
https://codereview.chromium.org/11567034/diff/1/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/1/cc/draw_properties.h#newcode59 cc/draw_properties.h:59: bool all_children_can_clip; We should definitely add another line to ...
8 years ago (2012-12-14 07:34:44 UTC) #3
Ian Vollick
https://codereview.chromium.org/11567034/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11567034/diff/1/cc/layer_tree_host_common.cc#newcode454 cc/layer_tree_host_common.cc:454: bool sublayerPreventsClip = !isPositiveScaleOrTranslation(layer->sublayerTransform()); On 2012/12/14 04:31:19, jamesr wrote: ...
8 years ago (2012-12-14 12:02:16 UTC) #4
shawnsingh
I'm thinking this would be something worth doing after branch? We probably want to try ...
8 years ago (2012-12-14 17:58:01 UTC) #5
danakj
On Fri, Dec 14, 2012 at 4:02 AM, <[email protected]> wrote: > > https://codereview.chromium.org/11567034/diff/1/cc/layer_tree_host_common.cc > File ...
8 years ago (2012-12-14 18:01:45 UTC) #6
whunt
https://codereview.chromium.org/11567034/diff/1/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/1/cc/draw_properties.h#newcode59 cc/draw_properties.h:59: bool all_children_can_clip; I'm happy to do this but I ...
8 years ago (2012-12-14 18:17:00 UTC) #7
jamesr
https://codereview.chromium.org/11567034/diff/8001/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/8001/cc/draw_properties.h#newcode28 cc/draw_properties.h:28: , num_descendants_that_draw_content_and_cant_clip_themselves(0) Hmm, what a mouthful! I don't think ...
8 years ago (2012-12-14 21:48:53 UTC) #8
whunt
https://codereview.chromium.org/11567034/diff/8001/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11567034/diff/8001/cc/layer_tree_host_common.cc#newcode433 cc/layer_tree_host_common.cc:433: inline bool isPositiveScaleOrTranslation(const gfx::Transform& xform) This function is no ...
8 years ago (2012-12-14 22:12:20 UTC) #9
jamesr
Shawn or Dana should double check the transform use but I think this is right. ...
8 years ago (2012-12-14 22:51:16 UTC) #10
shawnsingh
In whatever unit tests you add, can you please make sure to test a clipping ...
8 years ago (2012-12-14 23:59:11 UTC) #11
danakj
https://codereview.chromium.org/11567034/diff/10001/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/10001/cc/draw_properties.h#newcode81 cc/draw_properties.h:81: int can_clip_self; Can you add a description comment for ...
8 years ago (2012-12-15 00:02:17 UTC) #12
whunt
On 2012/12/15 00:02:17, danakj wrote: > https://codereview.chromium.org/11567034/diff/10001/cc/draw_properties.h > File cc/draw_properties.h (right): > > https://codereview.chromium.org/11567034/diff/10001/cc/draw_properties.h#newcode81 > ...
8 years ago (2012-12-15 01:22:53 UTC) #13
whunt
On 2012/12/14 23:59:11, shawnsingh wrote: > In whatever unit tests you add, can you please ...
8 years ago (2012-12-15 01:24:51 UTC) #14
slavi
https://codereview.chromium.org/11567034/diff/1006/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/1006/cc/draw_properties.h#newcode81 cc/draw_properties.h:81: int can_clip_self; bool?
8 years ago (2012-12-15 02:39:00 UTC) #15
shawnsingh
nevermind, I solved it myself. I was thinking that, since we're now skipping renderSurfaces, that ...
8 years ago (2012-12-15 02:47:39 UTC) #16
danakj
https://codereview.chromium.org/11567034/diff/1006/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/1006/cc/draw_properties.h#newcode81 cc/draw_properties.h:81: int can_clip_self; Would still like a descriptive comment here ...
8 years ago (2012-12-15 18:49:11 UTC) #17
danakj
The description says this CL "prevents proliferation of layers" but I'm not sure where any ...
8 years ago (2012-12-15 18:49:18 UTC) #18
whunt
On 2012/12/15 18:49:18, danakj wrote: > The description says this CL "prevents proliferation of layers" ...
8 years ago (2012-12-17 23:16:47 UTC) #19
danakj
On 2012/12/17 23:16:47, whunt wrote: > On 2012/12/15 18:49:18, danakj wrote: > > The description ...
8 years ago (2012-12-17 23:23:56 UTC) #20
shawnsingh
Thanks for putting up with all our comments. Here are my comments, mostly just nits, ...
8 years ago (2012-12-18 19:10:59 UTC) #21
whunt
https://codereview.chromium.org/11567034/diff/12002/cc/layer_tree_host_common_unittest.cc File cc/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/11567034/diff/12002/cc/layer_tree_host_common_unittest.cc#newcode354 cc/layer_tree_host_common_unittest.cc:354: Just trying to read the code, I'll remove them. ...
8 years ago (2012-12-18 19:48:15 UTC) #22
danakj
LGTM+nits https://codereview.chromium.org/11567034/diff/21004/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11567034/diff/21004/cc/draw_properties.h#newcode84 cc/draw_properties.h:84: int descendants_can_clip_selves; you meant bool here i think? ...
8 years ago (2012-12-19 22:46:56 UTC) #23
danakj
Sorry for being slow to review. I didn't realize you had updated the patch. If ...
8 years ago (2012-12-19 22:47:38 UTC) #24
whunt
8 years ago (2012-12-20 18:29:41 UTC) #25
whunt
https://codereview.chromium.org/11567034/diff/21004/cc/layer_tree_host_common_unittest.cc File cc/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/11567034/diff/21004/cc/layer_tree_host_common_unittest.cc#newcode418 cc/layer_tree_host_common_unittest.cc:418: setLayerPropertiesForTesting(root .get(), identityMatrix , identityMatrix , gfx::PointF( 0, 0), ...
7 years, 11 months ago (2013-01-04 19:12:26 UTC) #26
danakj
LGTM still. https://codereview.chromium.org/11567034/diff/34001/ui/gfx/transform.h File ui/gfx/transform.h (right): https://codereview.chromium.org/11567034/diff/34001/ui/gfx/transform.h#newcode81 ui/gfx/transform.h:81: // Returns true if the matrix is ...
7 years, 11 months ago (2013-01-04 21:17:57 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11567034/34001
7 years, 11 months ago (2013-01-07 18:23:08 UTC) #28
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_common.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-07 18:23:12 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11567034/38003
7 years, 11 months ago (2013-01-08 01:05:21 UTC) #30
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_common_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-08 01:05:26 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11567034/34002
7 years, 11 months ago (2013-01-09 19:47:07 UTC) #32
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 23:24:46 UTC) #33
Message was sent while issue was closed.
Change committed as 175919

Powered by Google App Engine
This is Rietveld 408576698