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

Issue 11416088: cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer
Visibility:
Public.

Description

cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. SharedQuadState was a struct previously, but required all the data to be passed to its create() method. This makes the Create() method take no parameters, as DrawQuads work now. And we add a SetAll() method, similar again to DrawQuad. We remove the "id" value from ShardQuadState. This shouldn't be needed for serialization. We can instead just use the pointers in the quads as an id directly, and compare them against each other to see when we need to create a new shared quad state. This is sufficient since all quads that share an instance of SharedQuadState are appended to be adjacent in the quad list. Covered by existing tests. TBR=aelias BUG=152337 Depends on: https://codereview.chromium.org/11411050 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168960

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Patch Set 3 : Fix win build #

Patch Set 4 : Fix debug build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -75 lines) Patch
M cc/delegated_renderer_layer_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/delegated_renderer_layer_impl_unittest.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M cc/draw_quad.h View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/draw_quad_unittest.cc View 1 3 chunks +9 lines, -13 lines 0 comments Download
M cc/layer_impl.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M cc/quad_culler.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/quad_sink.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/render_pass.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M cc/render_pass_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/render_surface_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/render_surface_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/shared_quad_state.h View 1 chunk +20 lines, -14 lines 0 comments Download
M cc/shared_quad_state.cc View 1 chunk +15 lines, -15 lines 0 comments Download
M cc/software_renderer_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/mock_quad_culler.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
8 years, 1 month ago (2012-11-20 01:40:38 UTC) #1
danakj
https://codereview.chromium.org/11416088/diff/1/cc/shared_quad_state.h File cc/shared_quad_state.h (right): https://codereview.chromium.org/11416088/diff/1/cc/shared_quad_state.h#newcode21 cc/shared_quad_state.h:21: void SetAll(const WebKit::WebTransformationMatrix& content_to_target_transform, I violated 80cols here because ...
8 years, 1 month ago (2012-11-20 01:41:42 UTC) #2
aelias_OOO_until_Jul13
When are you planning to create the new SharedQuadState on the receiving side? Keep in ...
8 years, 1 month ago (2012-11-20 01:55:47 UTC) #3
danakj
On 2012/11/20 01:55:47, aelias wrote: > When are you planning to create the new SharedQuadState ...
8 years, 1 month ago (2012-11-20 05:06:05 UTC) #4
danakj
On 2012/11/20 05:06:05, danakj wrote: > Well, I didn't think about that at the time, ...
8 years, 1 month ago (2012-11-20 05:07:33 UTC) #5
aelias_OOO_until_Jul13
lgtm. As discussed offline, it's too brittle to rely on the ordering. But we can ...
8 years, 1 month ago (2012-11-20 21:36:42 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 1 month ago (2012-11-20 23:09:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11416088/19
8 years, 1 month ago (2012-11-20 23:11:09 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/11416088/3019
8 years, 1 month ago (2012-11-20 23:29:00 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-21 04:02:26 UTC) #10
Change committed as 168960

Powered by Google App Engine
This is Rietveld 408576698