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

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed)

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

Description

cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. We use these geometry types for CCDrawQuad types and in CCRenderPass, and so we also make use of them in the CCRenderer classes. A minor number of copies back to cc:: (WebCore) geometry types do occur in the renderer implementations for now until we migrate the rest of the compositor. Covered by existing tests. BUG=152473 R=enne,jamesr Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163142

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : gfx:: types #

Patch Set 4 : gfx:: types #

Patch Set 5 : without ui/gfx changes #

Patch Set 6 : trying that again #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : include explicit ToFoo conversions #

Patch Set 10 : RESET back to using gfx:: types #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : rebase #

Patch Set 16 : rebase #

Patch Set 17 : rebaseagain #

Patch Set 18 : fix-mac #

Patch Set 19 : rebase #

Patch Set 20 : fix-mac-2 #

Patch Set 21 : rebaseagain #

Patch Set 22 : nodeps #

Patch Set 23 : macbuild #

Patch Set 24 : rebased #

Patch Set 25 : rebased #

Patch Set 26 : rebase #

Patch Set 27 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -241 lines) Patch
M cc/checkerboard_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M cc/checkerboard_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/debug_border_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M cc/debug_border_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/delegated_renderer_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +4 lines, -4 lines 0 comments Download
M cc/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +3 lines, -3 lines 0 comments Download
M cc/direct_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +8 lines, -8 lines 0 comments Download
M cc/direct_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7 chunks +17 lines, -16 lines 0 comments Download
M cc/draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +11 lines, -11 lines 0 comments Download
M cc/draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +5 lines, -8 lines 0 comments Download
M cc/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 6 chunks +13 lines, -13 lines 0 comments Download
M cc/gl_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +13 lines, -14 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 23 chunks +33 lines, -34 lines 0 comments Download
M cc/io_surface_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -5 lines 0 comments Download
M cc/io_surface_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 15 chunks +17 lines, -17 lines 0 comments Download
M cc/quad_culler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +4 lines, -4 lines 0 comments Download
M cc/quad_culler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +4 lines, -4 lines 0 comments Download
M cc/render_pass.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +8 lines, -7 lines 0 comments Download
M cc/render_pass.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/render_pass_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -5 lines 0 comments Download
M cc/render_pass_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/render_pass_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +6 lines, -6 lines 0 comments Download
M cc/render_surface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +3 lines, -2 lines 0 comments Download
M cc/renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +1 line, -2 lines 0 comments Download
M cc/shared_quad_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -5 lines 0 comments Download
M cc/shared_quad_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -4 lines 0 comments Download
M cc/software_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -3 lines 0 comments Download
M cc/software_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7 chunks +10 lines, -10 lines 0 comments Download
M cc/solid_color_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M cc/solid_color_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/stream_video_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M cc/stream_video_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/stubs/float_point.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M cc/stubs/float_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +12 lines, -0 lines 0 comments Download
M cc/stubs/float_rect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +17 lines, -0 lines 0 comments Download
cc/stubs/float_size.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M cc/stubs/int_point.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M cc/stubs/int_rect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +17 lines, -0 lines 0 comments Download
M cc/stubs/int_size.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
M cc/test/geometry_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +8 lines, -8 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M cc/test/mock_quad_culler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M cc/texture_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -5 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/tile_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +8 lines, -8 lines 0 comments Download
M cc/tile_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download
M cc/tiled_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +2 lines, -2 lines 0 comments Download
M cc/yuv_video_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M cc/yuv_video_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
danakj
PTAL This will allow us to remove WebCore types from all CCRenderPass and dependency headers ...
8 years, 2 months ago (2012-09-26 22:26:45 UTC) #1
enne (OOO)
We use these types a lot. Is there a reason to have a separate ccmath ...
8 years, 2 months ago (2012-09-28 16:59:55 UTC) #2
aelias_OOO_until_Jul13
On http://code.google.com/p/chromium/issues/detail?id=147395 there seems to be agreement that we'll use ui::gfx types instead, so is ...
8 years, 2 months ago (2012-09-28 18:33:22 UTC) #3
danakj
On 2012/09/28 18:33:22, aelias wrote: > On http://code.google.com/p/chromium/issues/detail?id=147395 there seems to be > agreement that ...
8 years, 2 months ago (2012-09-28 19:38:02 UTC) #4
tfarina
http://codereview.chromium.org/10984053/diff/2001/cc/math/clamp.h File cc/math/clamp.h (right): http://codereview.chromium.org/10984053/diff/2001/cc/math/clamp.h#newcode8 cc/math/clamp.h:8: #include "cc/math/clamp.h" we are self including here? http://codereview.chromium.org/10984053/diff/2001/cc/math/clamp.h#newcode9 cc/math/clamp.h:9: ...
8 years, 2 months ago (2012-09-28 19:39:30 UTC) #5
tfarina
On Fri, Sep 28, 2012 at 4:39 PM, <[email protected]> wrote: > http://codereview.chromium.org/10984053/diff/2001/cc/math/clamp.h#newcode15 > cc/math/clamp.h:15: private: ...
8 years, 2 months ago (2012-09-28 19:41:11 UTC) #6
jamesr1
On Fri, Sep 28, 2012 at 12:38 PM, <[email protected]> wrote: > On 2012/09/28 18:33:22, aelias ...
8 years, 2 months ago (2012-09-28 19:47:43 UTC) #7
danakj
PTAL. I've switch all the Quads/RenderPass structures to ui/gfx types this time. Some minimal changes ...
8 years, 2 months ago (2012-09-28 22:48:37 UTC) #8
jamesr
On 2012/09/28 22:48:37, danakj wrote: > PTAL. I've switch all the Quads/RenderPass structures to ui/gfx ...
8 years, 2 months ago (2012-09-28 22:50:40 UTC) #9
danakj
On 2012/09/28 22:50:40, jamesr wrote: > Let's do the ui/gfx changes as a separate patch. ...
8 years, 2 months ago (2012-09-28 22:53:58 UTC) #10
danakj
I double checked and fixed up all the changes with regard to gfx::Rect::Intersect and Union ...
8 years, 2 months ago (2012-09-29 00:28:19 UTC) #11
enne (OOO)
I know you've done all the hard work of adding ToFoo() already, but I really ...
8 years, 2 months ago (2012-10-05 16:25:01 UTC) #12
danakj
PTAL. This depends on http://codereview.chromium.org/11028127
8 years, 2 months ago (2012-10-11 17:50:46 UTC) #13
enne (OOO)
lgtm
8 years, 2 months ago (2012-10-11 18:46:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10984053/44001
8 years, 2 months ago (2012-10-15 21:26:13 UTC) #15
commit-bot: I haz the power
Retried try job too often for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, content_browsertests, content_unittests, crypto_unittests, gpu_unittests, ...
8 years, 2 months ago (2012-10-15 21:39:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10984053/48002
8 years, 2 months ago (2012-10-15 21:43:31 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-15 23:18:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10984053/88001
8 years, 2 months ago (2012-10-20 00:11:42 UTC) #19
commit-bot: I haz the power
8 years, 2 months ago (2012-10-20 04:12:45 UTC) #20
Change committed as 163142

Powered by Google App Engine
This is Rietveld 408576698