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

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed)

Created:
8 years, 11 months ago by piman
Modified:
8 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, apatrick_chromium, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

gpu: reference target surfaces through a globally unique surface id. This allows the gpu process to ignore all knowledge of renderers. It simplifies some of the gpu <-> browser and gpu <-> renderer IPC, but mostly paves the way for non-renderer clients. Surfaces are kept in a global GpuSurfaceTracker which is just a thread-safe map. BUG=99516 TEST=covered by existing tests. Run chrome, open poster circle (or other accelerated content page). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118172

Patch Set 1 : . #

Total comments: 24

Patch Set 2 : rebase, fix test, fix review comments #

Patch Set 3 : Fix mac #

Patch Set 4 : fix one more test #

Patch Set 5 : fix more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -494 lines) Patch
M chrome/browser/tab_contents/thumbnail_generator_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tabs/tab_strip_model_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 4 chunks +4 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 3 chunks +7 lines, -13 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 10 chunks +25 lines, -21 lines 0 comments Download
A content/browser/gpu/gpu_surface_tracker.h View 1 1 chunk +81 lines, -0 lines 0 comments Download
A content/browser/gpu/gpu_surface_tracker.cc View 1 chunk +75 lines, -0 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_linux.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_linux_cc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_linux_gl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_mac.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_mac.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_manager_mac.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/accelerated_surface_container_manager_mac.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/gpu_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/gpu_message_filter.cc View 3 chunks +16 lines, -5 lines 0 comments Download
M content/browser/renderer_host/image_transport_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_client.cc View 1 5 chunks +12 lines, -11 lines 0 comments Download
M content/browser/renderer_host/mock_render_process_host.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/mock_render_process_host.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 2 chunks +14 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 4 chunks +5 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 6 chunks +15 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 5 chunks +28 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 5 chunks +13 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/text_input_client_mac_unittest.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_delegate_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_channel.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 3 chunks +5 lines, -11 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 4 chunks +4 lines, -9 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 9 chunks +14 lines, -21 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 8 chunks +8 lines, -14 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 11 chunks +20 lines, -54 lines 0 comments Download
M content/common/gpu/image_transport_surface_linux.cc View 22 chunks +43 lines, -76 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 2 3 4 20 chunks +30 lines, -59 lines 0 comments Download
M content/common/gpu/image_transport_surface_win.cc View 1 2 3 4 8 chunks +11 lines, -25 lines 0 comments Download
M content/common/view_messages.h View 1 2 chunks +11 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/gpu/gpu_channel_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/gpu_channel_host.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/renderer_gl_context.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/renderer_gl_context.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 6 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/mock_render_thread.h View 3 chunks +9 lines, -1 line 0 comments Download
M content/test/mock_render_thread.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/test/render_view_test.cc View 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
piman
Infrastructure to use the GPU process from the browser, part 2 of many. Sorry for ...
8 years, 11 months ago (2012-01-14 02:37:24 UTC) #1
jonathan.backer
LGTM Nothing but nits. Thanks for the WeakPtr to GpuCommandBufferStub cleanup. http://codereview.chromium.org/9194005/diff/7004/content/browser/gpu/gpu_surface_tracker.h File content/browser/gpu/gpu_surface_tracker.h (right): ...
8 years, 11 months ago (2012-01-16 19:47:26 UTC) #2
piman
Note, in this patch I also fixed a failing test, and a struct/class issue. http://codereview.chromium.org/9194005/diff/7004/content/browser/gpu/gpu_surface_tracker.h ...
8 years, 11 months ago (2012-01-17 19:40:54 UTC) #3
apatrick_chromium
LGTM. Thanks!
8 years, 11 months ago (2012-01-17 20:06:39 UTC) #4
Ben Goodger (Google)
lgtm
8 years, 11 months ago (2012-01-17 22:27:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/9194005/20015
8 years, 11 months ago (2012-01-17 23:19:12 UTC) #6
commit-bot: I haz the power
Presubmit check for 9194005-20015 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-17 23:19:57 UTC) #7
piman
+jam for OWNERS in content/public (only 1 file).
8 years, 11 months ago (2012-01-17 23:36:32 UTC) #8
jam
On 2012/01/17 23:36:32, piman wrote: > +jam for OWNERS in content/public (only 1 file). lgtm, ...
8 years, 11 months ago (2012-01-18 19:27:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/9194005/20015
8 years, 11 months ago (2012-01-18 19:44:09 UTC) #10
commit-bot: I haz the power
8 years, 11 months ago (2012-01-18 22:29:59 UTC) #11
Change committed as 118172

Powered by Google App Engine
This is Rietveld 408576698