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

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)

Created:
4 years, 1 month ago by piman
Modified:
4 years, 1 month ago
CC:
chromium-reviews, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, jbauman+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, scf+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, khushalsagar+watch-blimp_chromium.org, mlamouri+watch-test-runner_chromium.org, rjkroege, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, tfarina, steimel+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, danakj+watch_chromium.org, dtrainor+watch-blimp_chromium.org, einbinder+watch-test-runner_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink They're only used by the ResourceProvider, so there's no fundamental reason for them to take a separate path through the compositor. Besides, it is natural that the CompositorFrameSink contains all the objects needed to create resources, all at the same place. Finally, it's less code overall. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/c44437a22b4b75aa2b780ddb8f8adb562844d994 Cr-Commit-Position: refs/heads/master@{#428551}

Patch Set 1 : compile fixes #

Total comments: 15

Patch Set 2 : review comments #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : post-rebase fixes #

Patch Set 5 : last comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -514 lines) Patch
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_frame_sink.h View 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_frame_sink.cc View 1 chunk +5 lines, -1 line 0 comments Download
M blimp/client/core/compositor/blimp_compositor_frame_sink_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M blimp/client/support/compositor/blimp_embedder_compositor.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/debug/micro_benchmark_controller_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M cc/input/browser_controls_offset_manager_unittest.cc View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M cc/input/scroll_state_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M cc/input/scrollbar_animation_controller_linear_fade_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl_unittest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 6 chunks +3 lines, -12 lines 0 comments Download
M cc/layers/layer_iterator_unittest.cc View 2 chunks +1 line, -5 lines 0 comments Download
M cc/layers/layer_list_iterator_unittest.cc View 5 chunks +4 lines, -13 lines 0 comments Download
M cc/layers/layer_perftest.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M cc/layers/layer_unittest.cc View 5 chunks +0 lines, -8 lines 0 comments Download
M cc/layers/layer_utils_unittest.cc View 3 chunks +1 line, -5 lines 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer_unittest.cc View 8 chunks +8 lines, -20 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 4 chunks +3 lines, -10 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M cc/layers/solid_color_layer_impl_unittest.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/ui_resource_layer_impl_unittest.cc View 4 chunks +6 lines, -10 lines 0 comments Download
M cc/output/compositor_frame_sink.h View 4 chunks +22 lines, -1 line 0 comments Download
M cc/output/compositor_frame_sink.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M cc/output/compositor_frame_sink_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.h View 1 chunk +3 lines, -1 line 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M cc/surfaces/direct_compositor_frame_sink_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_compositor_frame_sink.h View 2 chunks +5 lines, -0 lines 0 comments Download
M cc/test/fake_compositor_frame_sink.cc View 1 chunk +9 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_impl.h View 1 chunk +0 lines, -7 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 chunk +1 line, -20 lines 0 comments Download
M cc/test/fake_ui_resource_layer_tree_host_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/fake_ui_resource_layer_tree_host_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/layer_tree_host_remote_for_testing.h View 3 chunks +1 line, -7 lines 0 comments Download
M cc/test/layer_tree_host_remote_for_testing.cc View 6 chunks +3 lines, -13 lines 0 comments Download
M cc/test/layer_tree_json_parser_unittest.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 9 chunks +8 lines, -29 lines 0 comments Download
M cc/test/test_compositor_frame_sink.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/test_compositor_frame_sink.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/test/test_layer_tree_host_base.h View 3 chunks +1 line, -7 lines 0 comments Download
M cc/test/test_layer_tree_host_base.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M cc/tiles/picture_layer_tiling_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/tiles/tile_manager_perftest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 3 chunks +6 lines, -16 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 3 chunks +1 line, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 21 chunks +19 lines, -54 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 4 chunks +4 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 14 chunks +13 lines, -27 lines 0 comments Download
M cc/trees/layer_tree_host_in_process.h View 1 2 6 chunks +2 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host_in_process.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/context_provider_factory_impl_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/context_provider_factory_impl_android.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/gpu/renderer_compositor_frame_sink.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/gpu/renderer_compositor_frame_sink.cc View 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/layout_test_dependencies.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 4 chunks +9 lines, -6 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 3 chunks +0 lines, -6 lines 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/demo/bitmap_uploader.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/demo/bitmap_uploader.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window.h View 2 chunks +6 lines, -1 line 0 comments Download
M services/ui/public/cpp/window.cc View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_compositor_frame_sink.h View 2 chunks +2 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window_compositor_frame_sink.cc View 3 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/android/context_provider_factory.h View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/compositor/compositor.h View 3 chunks +0 lines, -5 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 4 chunks +3 lines, -7 lines 0 comments Download
M ui/views/mus/surface_context_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.cc View 1 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 45 (34 generated)
piman
danakj: please review sky: OWNER for services/ui/ and ui/views/mus/ khushalsagar: OWNER for blimp/ kbr: OWNER ...
4 years, 1 month ago (2016-10-26 23:29:25 UTC) #22
Ken Russell (switch to Gerrit)
CompositorMutableStateTest.cpp lgtm
4 years, 1 month ago (2016-10-26 23:35:25 UTC) #23
Khushal
lgtm
4 years, 1 month ago (2016-10-26 23:45:51 UTC) #24
sky
LGTM
4 years, 1 month ago (2016-10-27 15:31:50 UTC) #25
danakj
https://codereview.chromium.org/2452483002/diff/60001/cc/layers/layer_perftest.cc File cc/layers/layer_perftest.cc (right): https://codereview.chromium.org/2452483002/diff/60001/cc/layers/layer_perftest.cc#newcode48 cc/layers/layer_perftest.cc:48: TestSharedBitmapManager shared_bitmap_manager_; Not used? https://codereview.chromium.org/2452483002/diff/60001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2452483002/diff/60001/cc/output/compositor_frame_sink.h#newcode66 ...
4 years, 1 month ago (2016-10-27 21:00:35 UTC) #26
piman
https://codereview.chromium.org/2452483002/diff/60001/cc/layers/layer_perftest.cc File cc/layers/layer_perftest.cc (right): https://codereview.chromium.org/2452483002/diff/60001/cc/layers/layer_perftest.cc#newcode48 cc/layers/layer_perftest.cc:48: TestSharedBitmapManager shared_bitmap_manager_; On 2016/10/27 21:00:34, danakj wrote: > Not ...
4 years, 1 month ago (2016-10-28 00:58:37 UTC) #31
danakj
LGTM https://codereview.chromium.org/2452483002/diff/60001/ui/views/mus/surface_context_factory.cc File ui/views/mus/surface_context_factory.cc (right): https://codereview.chromium.org/2452483002/diff/60001/ui/views/mus/surface_context_factory.cc#newcode46 ui/views/mus/surface_context_factory.cc:46: GetGpuMemoryBufferManager()); On 2016/10/28 00:58:36, piman wrote: > On ...
4 years, 1 month ago (2016-10-28 01:33:20 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2452483002/160001
4 years, 1 month ago (2016-10-28 22:07:10 UTC) #41
piman
https://codereview.chromium.org/2452483002/diff/80001/content/renderer/android/synchronous_compositor_frame_sink.cc File content/renderer/android/synchronous_compositor_frame_sink.cc (right): https://codereview.chromium.org/2452483002/diff/80001/content/renderer/android/synchronous_compositor_frame_sink.cc#newcode181 content/renderer/android/synchronous_compositor_frame_sink.cc:181: nullptr /* shared_bitmap_manager */, gpu_memory_buffer_manager(), On 2016/10/28 01:33:20, danakj ...
4 years, 1 month ago (2016-10-28 22:08:34 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 1 month ago (2016-10-29 00:09:53 UTC) #43
commit-bot: I haz the power
4 years, 1 month ago (2016-10-29 00:44:27 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c44437a22b4b75aa2b780ddb8f8adb562844d994
Cr-Commit-Position: refs/heads/master@{#428551}

Powered by Google App Engine
This is Rietveld 408576698