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

Issue 11418047: cc: Turn DrawQuad into a struct-like class with public data members. (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 DrawQuad into a struct-like class with public data members. We add a SetAll() method that sets everything to keep the compile-time guard that verifies everything gets set from all appropriate callsites. This replaces the constructor which now takes no arguments at all. We will replace the constructor with an overriding SetAll() for each subclass of DrawQuads and make them into structs as well. Covered by existing tests. TBR=aelias BUG=152337 NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168460

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : visibleRect #

Patch Set 5 : no virtual for SetAll() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -209 lines) Patch
M cc/checkerboard_draw_quad.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M cc/debug_border_draw_quad.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M cc/delegated_renderer_layer_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/delegated_renderer_layer_impl_unittest.cc View 5 chunks +15 lines, -15 lines 0 comments Download
M cc/draw_quad.h View 1 2 3 4 1 chunk +21 lines, -47 lines 0 comments Download
M cc/draw_quad.cc View 3 chunks +24 lines, -15 lines 0 comments Download
M cc/draw_quad_unittest.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M cc/gl_renderer.cc View 16 chunks +24 lines, -24 lines 0 comments Download
M cc/io_surface_draw_quad.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 20 chunks +26 lines, -26 lines 0 comments Download
M cc/nine_patch_layer_impl_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M cc/quad_culler.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M cc/quad_culler_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/render_pass_draw_quad.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M cc/software_renderer.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/solid_color_draw_quad.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M cc/solid_color_layer_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/stream_video_draw_quad.cc View 1 2 3 1 chunk +5 lines, -3 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 +1 line, -1 line 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M cc/tile_draw_quad.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/tile_draw_quad.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M cc/tiled_layer_impl_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/yuv_video_draw_quad.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danakj
This patch does: - Replace DrawQuad::DrawQuad() with DrawQuad::SetAll() - Have each subclass of DrawQuad call ...
8 years, 1 month ago (2012-11-16 22:56:02 UTC) #1
aelias_OOO_until_Jul13
I preferred having the base class implicitly set visibleRect. The SetAll calls are unreadable with ...
8 years, 1 month ago (2012-11-16 23:11:54 UTC) #2
danakj
On 2012/11/16 23:11:54, aelias wrote: > I preferred having the base class implicitly set visibleRect. ...
8 years, 1 month ago (2012-11-16 23:16:30 UTC) #3
aelias_OOO_until_Jul13
Yes, adding the temp sounds good, thanks!
8 years, 1 month ago (2012-11-16 23:17:28 UTC) #4
danakj
On 2012/11/16 23:16:30, danakj wrote: > On 2012/11/16 23:11:54, aelias wrote: > > I preferred ...
8 years, 1 month ago (2012-11-16 23:18:07 UTC) #5
danakj
On 2012/11/16 23:17:28, aelias wrote: > Yes, adding the temp sounds good, thanks! Done.
8 years, 1 month ago (2012-11-16 23:21:48 UTC) #6
aelias_OOO_until_Jul13
Seems okay, but will the serializers be call SetAll on the base class at all, ...
8 years, 1 month ago (2012-11-16 23:22:35 UTC) #7
danakj
On 2012/11/16 23:22:35, aelias wrote: > Seems okay, but will the serializers be call SetAll ...
8 years, 1 month ago (2012-11-16 23:25:13 UTC) #8
aelias_OOO_until_Jul13
Anyway, LGTM for this patch.
8 years, 1 month ago (2012-11-16 23:25:16 UTC) #9
danakj
On Fri, Nov 16, 2012 at 6:25 PM, <aelias@chromium.org> wrote: > Anyway, LGTM for this ...
8 years, 1 month ago (2012-11-16 23:27:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418047/2082
8 years, 1 month ago (2012-11-17 16:47:21 UTC) #11
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 1 month ago (2012-11-17 18:16:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418047/2082
8 years, 1 month ago (2012-11-17 18:21:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418047/2082
8 years, 1 month ago (2012-11-17 19:29:22 UTC) #14
commit-bot: I haz the power
8 years, 1 month ago (2012-11-17 19:29:52 UTC) #15
Change committed as 168460

Powered by Google App Engine
This is Rietveld 408576698