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

Issue 12040011: cc: Clip delegated quads to the correct clip rect. (Closed)

Created:
7 years, 11 months ago by danakj
Modified:
7 years, 11 months ago
Reviewers:
jamesr, piman
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO), backer
Visibility:
Public.

Description

cc: Clip delegated quads to the correct clip rect. The clip rect of the delegated renderer layer needs to be honored by the quads that it generates. 1) Intersect any clip rects in the delegated quads with the DelegatedRendererLayer's clip rect. 2) If a quad has no clip rect, then set it to the entire rect of the DelegatedRendererLayer in its target space, so that they will not go outside of the layer's bounds. Tests: DelegatedRendererLayerImplTestTransform.QuadsUnclipped_NoSurface DelegatedRendererLayerImplTestTransform.QuadsClipped_NoSurface DelegatedRendererLayerImplTestTransform.QuadsUnclipped_Surface DelegatedRendererLayerImplTestTransform.QuadsClipped_Surface DelegatedRendererLayerImplTestClip.QuadsUnclipped_LayerUnclipped_NoSurface DelegatedRendererLayerImplTestClip.QuadsClipped_LayerUnclipped_NoSurface DelegatedRendererLayerImplTestClip.QuadsUnclipped_LayerClipped_NoSurface DelegatedRendererLayerImplTestClip.QuadsClipped_LayerClipped_NoSurface DelegatedRendererLayerImplTestClip.QuadsUnclipped_LayerUnclipped_Surface DelegatedRendererLayerImplTestClip.QuadsClipped_LayerUnclipped_Surface DelegatedRendererLayerImplTestClip.QuadsUnclipped_LayerClipped_Surface DelegatedRendererLayerImplTestClip.QuadsClipped_LayerClipped_Surface R=piman BUG=169089 Depends on: https://codereview.chromium.org/11871008 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178143

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebased-on-no-clipped_rect_in_target #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -63 lines) Patch
M cc/delegated_renderer_layer_impl.cc View 1 2 2 chunks +20 lines, -8 lines 0 comments Download
M cc/delegated_renderer_layer_impl_unittest.cc View 1 2 8 chunks +525 lines, -53 lines 0 comments Download
M cc/layer_tree_host_common.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
I left clipped_rect_in_target alone because it's being removed entirely in https://codereview.chromium.org/11871008
7 years, 11 months ago (2013-01-21 22:10:47 UTC) #1
jamesr
BUG= line looks wrong. How are the delegated quads intended to be clipped? Is this ...
7 years, 11 months ago (2013-01-21 22:47:38 UTC) #2
danakj
On 2013/01/21 22:47:38, jamesr wrote: > BUG= line looks wrong. Er, fixed. > How are ...
7 years, 11 months ago (2013-01-21 22:48:58 UTC) #3
danakj
Rebasing the unit tests on top of https://codereview.chromium.org/11871008 is a little non-trivial. I'm going to ...
7 years, 11 months ago (2013-01-21 22:55:23 UTC) #4
jamesr
> > How are the delegated quads intended to be clipped? Is this done by ...
7 years, 11 months ago (2013-01-21 23:00:07 UTC) #5
danakj
On 2013/01/21 23:00:07, jamesr wrote: > > > How are the delegated quads intended to ...
7 years, 11 months ago (2013-01-21 23:02:51 UTC) #6
danakj
Rebased it on https://codereview.chromium.org/11871008 and cleaned up/simplified the unit tests a lot.
7 years, 11 months ago (2013-01-21 23:56:05 UTC) #7
piman
lgtm
7 years, 11 months ago (2013-01-22 18:48:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12040011/11001
7 years, 11 months ago (2013-01-22 18:52:20 UTC) #9
commit-bot: I haz the power
7 years, 11 months ago (2013-01-22 22:55:15 UTC) #10
Message was sent while issue was closed.
Change committed as 178143

Powered by Google App Engine
This is Rietveld 408576698