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

Issue 801973002: Introduce CompositorDependencies for RenderWidgetCompositor. (Closed)

Created:
6 years ago by danakj
Modified:
6 years ago
Reviewers:
piman
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, piman+watch_chromium.org, mlamouri+watch-content_chromium.org, enne (OOO), jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce CompositorDependencies for RenderWidgetCompositor. This interface provides whatever RenderWidgetCompositor requires instead of going directly to RenderThreadImpl which may or may not exist in tests. R=piman@chromium.org BUG=384381 Committed: https://crrev.com/6e3bf801a1d673d73df79f64887b4429cf826887 Cr-Commit-Position: refs/heads/master@{#308615}

Patch Set 1 #

Patch Set 2 : compdep: . #

Patch Set 3 : compdep: . #

Patch Set 4 : compdep: . #

Patch Set 5 : compdep: android #

Patch Set 6 : compdep: removeifs #

Patch Set 7 : compdep: onemoreif-betternames #

Patch Set 8 : compdep: move-compositordepsimpl-to-separate-file #

Total comments: 1

Patch Set 9 : compdep: forbrowsertests #

Patch Set 10 : compdep: android-browser-tests-and-disallow_copy_and_assign #

Patch Set 11 : compdep: compile #

Patch Set 12 : compdep: . #

Patch Set 13 : compdep: rebase #

Patch Set 14 : compdep: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -294 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 1 chunk +3 lines, -11 lines 0 comments Download
A cc/test/fake_external_begin_frame_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A cc/test/fake_external_begin_frame_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -48 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
A content/renderer/gpu/compositor_dependencies.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_external_begin_frame_source.h View 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_external_begin_frame_source.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 3 chunks +8 lines, -5 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 11 chunks +68 lines, -106 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +19 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 6 chunks +27 lines, -41 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +69 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +21 lines, -23 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +18 lines, -19 lines 0 comments Download
M content/renderer/render_widget_fullscreen.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -6 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A content/test/fake_compositor_dependencies.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A content/test/fake_compositor_dependencies.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +83 lines, -0 lines 0 comments Download
A + content/test/fake_renderer_scheduler.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -11 lines 0 comments Download
A content/test/fake_renderer_scheduler.cc View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
danakj
6 years ago (2014-12-15 18:47:27 UTC) #1
danakj
There might be another test suite out there with a null RenderProcessImpl that I need ...
6 years ago (2014-12-15 18:48:06 UTC) #2
danakj
Moved the CompositorDepsForRenderThreadImpl to its own file (and named it CompositorDepsImpl instead) in the last ...
6 years ago (2014-12-15 19:03:27 UTC) #3
danakj
Oh! It looks like RenderThreadImpl is null in browser tests. I did not expect that ...
6 years ago (2014-12-15 19:04:35 UTC) #4
piman
LGTM, love this. https://codereview.chromium.org/801973002/diff/140001/content/renderer/gpu/compositor_dependencies_impl.h File content/renderer/gpu/compositor_dependencies_impl.h (right): https://codereview.chromium.org/801973002/diff/140001/content/renderer/gpu/compositor_dependencies_impl.h#newcode15 content/renderer/gpu/compositor_dependencies_impl.h:15: explicit CompositorDependenciesImpl(RenderThreadImpl* render_thread); That works, or ...
6 years ago (2014-12-15 19:09:02 UTC) #5
danakj
I had to add a bunch of plumbing to let RenderViewTest do RenderViewImpl::Create() and pass ...
6 years ago (2014-12-15 20:41:16 UTC) #6
piman
LGTM! https://codereview.chromium.org/801973002/diff/200001/content/test/fake_compositor_dependencies.h File content/test/fake_compositor_dependencies.h (right): https://codereview.chromium.org/801973002/diff/200001/content/test/fake_compositor_dependencies.h#newcode40 content/test/fake_compositor_dependencies.h:40: FakeRendererScheduler renderer_scheduler_; nit: DISALLOW_COPY_AND_ASSIGN
6 years ago (2014-12-15 21:49:05 UTC) #8
danakj
https://codereview.chromium.org/801973002/diff/200001/content/test/fake_compositor_dependencies.cc File content/test/fake_compositor_dependencies.cc (right): https://codereview.chromium.org/801973002/diff/200001/content/test/fake_compositor_dependencies.cc#newcode75 content/test/fake_compositor_dependencies.cc:75: FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { On OS_ANDROID we do call and ...
6 years ago (2014-12-15 22:51:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801973002/240001
6 years ago (2014-12-15 22:55:00 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/30951) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/42998) android_clang_dbg_recipe ...
6 years ago (2014-12-15 23:11:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801973002/260001
6 years ago (2014-12-16 16:24:46 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/43455)
6 years ago (2014-12-16 16:40:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801973002/280001
6 years ago (2014-12-16 16:51:26 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/43464)
6 years ago (2014-12-16 17:01:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801973002/320001
6 years ago (2014-12-16 17:05:17 UTC) #28
commit-bot: I haz the power
Committed patchset #14 (id:320001)
6 years ago (2014-12-16 18:28:13 UTC) #29
commit-bot: I haz the power
6 years ago (2014-12-16 18:29:01 UTC) #30
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/6e3bf801a1d673d73df79f64887b4429cf826887
Cr-Commit-Position: refs/heads/master@{#308615}

Powered by Google App Engine
This is Rietveld 408576698