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

Issue 404563005: Make RenderPass::Id an isolated class (Closed)

Created:
6 years, 5 months ago by weiliangc
Modified:
6 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, sievers+watch_chromium.org, yukishiino+watch_chromium.org, ben+mojo_chromium.org, qsr+mojo_chromium.org, jam, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, miu+watch_chromium.org, penghuang+watch_chromium.org, danakj+watch_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, Ian Vollick, Aaron Boodman, darin (slow to review), James Su, enne (OOO)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make RenderPass::Id an isolated class Move RenderPass::Id out of RenderPass and make it an isolated class called RenderPassId, so RenderPassDrawQuad and AppendQuadsData will not need to depend on entire RenderPass class. This is a clean up CL for CL 448303002 to avoid circular dependency issue for RenderPass and RenderPassDrawQuad class. BUG=344962 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291403

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix for rebase #

Patch Set 4 : rebaes #

Patch Set 5 : rebase #

Total comments: 10

Patch Set 6 : address review comments #

Patch Set 7 : rebase #

Patch Set 8 : one more case in mojo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -374 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/append_quads_data.h View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/delegated_frame_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/delegated_renderer_layer_impl.h View 3 chunks +6 lines, -7 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 2 3 6 chunks +14 lines, -15 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 12 chunks +47 lines, -54 lines 0 comments Download
M cc/layers/delegated_renderer_layer_unittest.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M cc/layers/render_surface_impl.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 2 3 4 1 chunk +10 lines, -12 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 21 chunks +26 lines, -26 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/renderer.h View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M cc/output/renderer.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 39 chunks +48 lines, -48 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M cc/quads/render_pass.h View 1 6 chunks +11 lines, -29 lines 0 comments Download
M cc/quads/render_pass.cc View 1 6 chunks +7 lines, -12 lines 0 comments Download
M cc/quads/render_pass_draw_quad.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M cc/quads/render_pass_draw_quad.cc View 1 2 3 2 chunks +21 lines, -23 lines 0 comments Download
A cc/quads/render_pass_id.h View 1 chunk +34 lines, -0 lines 0 comments Download
A cc/quads/render_pass_id.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M cc/surfaces/surface_aggregator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 4 chunks +10 lines, -11 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.h View 1 2 3 4 5 4 chunks +9 lines, -5 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 5 8 chunks +11 lines, -12 lines 0 comments Download
M cc/surfaces/surfaces_pixeltest.cc View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M cc/test/layer_test_common.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_test_common.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/render_pass_test_utils.h View 1 chunk +4 lines, -5 lines 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 1 chunk +11 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_no_message_loop.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M mojo/examples/surfaces_app/child_gl_impl.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M mojo/examples/surfaces_app/child_impl.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M mojo/examples/surfaces_app/embedder.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/public/cpp/surfaces/tests/surface_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
weiliangc
danakj: cc jamesr: mojo kenrb: cc_messages* kbr: content/browser/renderer_host
6 years, 4 months ago (2014-08-20 23:30:04 UTC) #1
jamesr
lgtm https://codereview.chromium.org/404563005/diff/80001/cc/cc.gyp File cc/cc.gyp (right): https://codereview.chromium.org/404563005/diff/80001/cc/cc.gyp#newcode327 cc/cc.gyp:327: 'quads/render_pass_id.cc', please update cc/BUILD.gn as well
6 years, 4 months ago (2014-08-20 23:32:15 UTC) #2
Ken Russell (switch to Gerrit)
content/browser/renderer_host lgtm
6 years, 4 months ago (2014-08-20 23:50:44 UTC) #3
danakj
LGTM https://codereview.chromium.org/404563005/diff/80001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/404563005/diff/80001/cc/layers/layer_impl.h#newcode27 cc/layers/layer_impl.h:27: #include "cc/quads/render_pass.h" can be forward declared now instead? ...
6 years, 4 months ago (2014-08-20 23:54:08 UTC) #4
weiliangc
https://codereview.chromium.org/404563005/diff/80001/cc/output/renderer.h File cc/output/renderer.h (right): https://codereview.chromium.org/404563005/diff/80001/cc/output/renderer.h#newcode10 cc/output/renderer.h:10: #include "cc/quads/render_pass.h" On 2014/08/20 23:54:08, danakj wrote: > can ...
6 years, 4 months ago (2014-08-21 15:37:23 UTC) #5
weiliangc
https://codereview.chromium.org/404563005/diff/80001/cc/cc.gyp File cc/cc.gyp (right): https://codereview.chromium.org/404563005/diff/80001/cc/cc.gyp#newcode327 cc/cc.gyp:327: 'quads/render_pass_id.cc', On 2014/08/20 23:32:15, jamesr wrote: > please update ...
6 years, 4 months ago (2014-08-21 17:17:54 UTC) #6
kenrb
ipc lgtm
6 years, 4 months ago (2014-08-21 19:12:13 UTC) #7
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 4 months ago (2014-08-21 19:14:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/404563005/100001
6 years, 4 months ago (2014-08-21 19:20:46 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 20:20:40 UTC) #10
weiliangc
The CQ bit was unchecked by weiliangc@chromium.org
6 years, 4 months ago (2014-08-21 20:22:05 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 20:27:57 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/44864) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/7891) ios_rel_device ...
6 years, 4 months ago (2014-08-21 20:27:59 UTC) #13
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 4 months ago (2014-08-21 20:32:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/404563005/120001
6 years, 4 months ago (2014-08-21 20:37:56 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 21:54:00 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 22:07:52 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/8320) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/5775) win8_chromium_rel ...
6 years, 4 months ago (2014-08-21 22:07:54 UTC) #18
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 4 months ago (2014-08-21 23:45:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/404563005/140001
6 years, 4 months ago (2014-08-21 23:49:23 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 01:11:07 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 01:14:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/8305)
6 years, 4 months ago (2014-08-22 01:14:56 UTC) #23
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 4 months ago (2014-08-22 14:37:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/404563005/140001
6 years, 4 months ago (2014-08-22 14:37:43 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 14:42:21 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (140001) as 291403
6 years, 4 months ago (2014-08-22 14:51:01 UTC) #27
tomhudson
It's not at all clear how this CL relates to the bug cited?
6 years, 4 months ago (2014-08-22 14:55:20 UTC) #28
weiliangc
6 years, 4 months ago (2014-08-22 15:01:44 UTC) #29
Message was sent while issue was closed.
On 2014/08/22 14:55:20, tomhudson wrote:
> It's not at all clear how this CL relates to the bug cited?

Without this a follow up CL to use custom code would create dependency cycle in
RenderPass and RenderPassDrawQuad. Follow up CL already touches a lot of files
so I want to separate this CL out.

Let me rewrite the description better.

Powered by Google App Engine
This is Rietveld 408576698