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

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed)

Created:
7 years, 11 months ago by danakj
Modified:
7 years, 11 months ago
Reviewers:
jamesr, slavi, piman
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, backer
Visibility:
Public.

Description

cc: Implement DelegatingRender::drawFrame() method. The method sends the render passes it is given to the parent compositor via the output surface. It should include a valid frame metadata with it. Tests: DelegatingRendererTestDraw.runSingleThread DelegatingRendererTestDraw.runMultiThread DelegatingRendererTestResources.runSingleThread DelegatingRendererTestResources.runMultiThread R=piman BUG=123444 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177073

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 2

Patch Set 3 : child_pass #

Patch Set 4 : a few more consts #

Total comments: 2

Patch Set 5 : pointers #

Patch Set 6 : for-landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -87 lines) Patch
M cc/cc_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/compositor_frame.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/compositor_frame.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/delegating_renderer.h View 3 chunks +6 lines, -1 line 0 comments Download
M cc/delegating_renderer.cc View 1 2 3 4 3 chunks +27 lines, -4 lines 0 comments Download
A cc/delegating_renderer_unittest.cc View 1 2 3 4 5 1 chunk +135 lines, -0 lines 0 comments Download
M cc/direct_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/draw_quad.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/draw_quad.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/gl_renderer_unittest.cc View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M cc/io_surface_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/io_surface_draw_quad.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -7 lines 0 comments Download
M cc/layer_tree_host_unittest_animation.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M cc/layer_tree_host_unittest_context.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M cc/output_surface.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M cc/render_pass.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M cc/render_pass.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M cc/render_pass_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/render_pass_draw_quad.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/stream_video_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/stream_video_draw_quad.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M cc/test/layer_tree_test_common.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/mock_quad_culler.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/pixel_test_output_surface.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/render_pass_test_common.h View 1 2 3 4 5 1 chunk +4 lines, -7 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 5 7 chunks +91 lines, -36 lines 0 comments Download
M cc/test/render_pass_test_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/texture_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M cc/tile_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/tile_draw_quad.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/yuv_video_draw_quad.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/yuv_video_draw_quad.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_factory.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M webkit/compositor_bindings/web_compositor_support_output_surface.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webkit/compositor_bindings/web_compositor_support_output_surface.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
danakj
+jamesr for webkit/
7 years, 11 months ago (2013-01-08 03:24:42 UTC) #1
piman
LGTM! https://codereview.chromium.org/11777025/diff/4001/cc/test/render_pass_test_common.h File cc/test/render_pass_test_common.h (right): https://codereview.chromium.org/11777025/diff/4001/cc/test/render_pass_test_common.h#newcode30 cc/test/render_pass_test_common.h:30: cc::ResourceProvider*, RenderPass::Id childPass); nit: child_pass
7 years, 11 months ago (2013-01-08 03:41:08 UTC) #2
aelias_OOO_until_Jul13
Metadata change lgtm
7 years, 11 months ago (2013-01-08 03:44:46 UTC) #3
danakj
thanks for quick review! https://codereview.chromium.org/11777025/diff/4001/cc/test/render_pass_test_common.h File cc/test/render_pass_test_common.h (right): https://codereview.chromium.org/11777025/diff/4001/cc/test/render_pass_test_common.h#newcode30 cc/test/render_pass_test_common.h:30: cc::ResourceProvider*, RenderPass::Id childPass); On 2013/01/08 ...
7 years, 11 months ago (2013-01-08 03:53:40 UTC) #4
piman
https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h#newcode559 content/browser/renderer_host/render_widget_host_impl.h:559: void OnSwapCompositorFrame(cc::CompositorFrame& frame); Why is this const going away?
7 years, 11 months ago (2013-01-08 04:22:23 UTC) #5
danakj
https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h#newcode559 content/browser/renderer_host/render_widget_host_impl.h:559: void OnSwapCompositorFrame(cc::CompositorFrame& frame); On 2013/01/08 04:22:23, piman wrote: > ...
7 years, 11 months ago (2013-01-08 15:28:25 UTC) #6
jamesr
On 2013/01/08 15:28:25, danakj wrote: > https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h > File content/browser/renderer_host/render_widget_host_impl.h (right): > > https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h#newcode559 > ...
7 years, 11 months ago (2013-01-08 17:08:27 UTC) #7
danakj
On 2013/01/08 17:08:27, jamesr wrote: > On 2013/01/08 15:28:25, danakj wrote: > > > https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h ...
7 years, 11 months ago (2013-01-08 17:52:40 UTC) #8
piman
On Tue, Jan 8, 2013 at 7:28 AM, <danakj@chromium.org> wrote: > > https://codereview.chromium.**org/11777025/diff/9001/** > content/browser/renderer_host/**render_widget_host_impl.h<https://codereview.chromium.org/11777025/diff/9001/content/browser/renderer_host/render_widget_host_impl.h> ...
7 years, 11 months ago (2013-01-08 18:06:35 UTC) #9
danakj
On 2013/01/08 18:06:35, piman wrote: > I don't disagree with the OutputSurface ones, but this ...
7 years, 11 months ago (2013-01-08 18:07:36 UTC) #10
danakj
Ok, using a scoped_ptr was kinda annoying. There's no need for the CompositorFrame to be ...
7 years, 11 months ago (2013-01-08 19:06:53 UTC) #11
jamesr
webkit/ lgtm
7 years, 11 months ago (2013-01-08 19:13:18 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/11777025/16001
7 years, 11 months ago (2013-01-08 19:17:52 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 11 months ago (2013-01-08 19:20:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/16001
7 years, 11 months ago (2013-01-08 19:22:55 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 11 months ago (2013-01-08 19:32:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/16001
7 years, 11 months ago (2013-01-08 19:51:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/23002
7 years, 11 months ago (2013-01-08 22:30:08 UTC) #18
commit-bot: I haz the power
Change committed as 175690
7 years, 11 months ago (2013-01-09 03:23:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/32004
7 years, 11 months ago (2013-01-09 05:01:20 UTC) #20
danakj
Removed the draw_quad.h header from render_pass.h l_t_h_i.h includes render_pass.h. draw_quad.h has resource_provider.h now, and this ...
7 years, 11 months ago (2013-01-09 05:01:44 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) content_browsertests
7 years, 11 months ago (2013-01-09 07:28:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/32004
7 years, 11 months ago (2013-01-09 14:22:48 UTC) #23
commit-bot: I haz the power
Failed to apply patch for cc/test/render_pass_test_common.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-09 14:23:02 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/31050
7 years, 11 months ago (2013-01-09 14:31:16 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 14:49:07 UTC) #26
slavi
https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc File cc/direct_renderer.cc (right): https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc#newcode11 cc/direct_renderer.cc:11: #include "cc/draw_quad.h" Is this include used?
7 years, 11 months ago (2013-01-09 20:58:49 UTC) #27
danakj
https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc File cc/direct_renderer.cc (right): https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc#newcode11 cc/direct_renderer.cc:11: #include "cc/draw_quad.h" On 2013/01/09 20:58:49, slavi wrote: > Is ...
7 years, 11 months ago (2013-01-09 21:01:16 UTC) #28
slavi
On 2013/01/09 21:01:16, danakj wrote: > https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc > File cc/direct_renderer.cc (right): > > https://codereview.chromium.org/11777025/diff/31050/cc/direct_renderer.cc#newcode11 > ...
7 years, 11 months ago (2013-01-09 21:29:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/34005
7 years, 11 months ago (2013-01-09 22:13:38 UTC) #30
danakj
erm :( [ RUN ] DelegatingRendererTestResources.runSingleThread [ERROR:io_surface_draw_quad.cc(53)] Not implemented reached in virtual void cc::IOSurfaceDrawQuad::AppendResources(cc::ResourceProvider::ResourceIdArray*) [ERROR:stream_video_draw_quad.cc(46)] ...
7 years, 11 months ago (2013-01-10 00:47:12 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/34005
7 years, 11 months ago (2013-01-11 03:53:15 UTC) #32
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-11 03:53:32 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11777025/44001
7 years, 11 months ago (2013-01-16 01:10:32 UTC) #34
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 03:27:34 UTC) #35
Retried try job too often on win for step(s) compile

Powered by Google App Engine
This is Rietveld 408576698