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

Issue 634643002: content: Out-of-process GPU service support for SurfaceTexture backed GpuMemoryBuffers. (Closed)

Created:
6 years, 2 months ago by reveman
Modified:
6 years, 2 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, jam, sievers+watch_chromium.org, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, alexst (slow to review)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

content: Out-of-process GPU service support for SurfaceTexture backed GpuMemoryBuffers. This implements proper out-of-process support for SurfaceTexture backed GpuMemoryBuffers using our generic GPU service side GpuMemoryBuffer allocation mechanism. Both renderer and browser compositor usage is supported. BUG=368716, 418553 TBR=jln@chromium.org,sky@chromium.org Committed: https://crrev.com/6f3e365094fbeeb0340f90917bde6a0a5889cce3 Cr-Commit-Position: refs/heads/master@{#299052}

Patch Set 1 #

Total comments: 15

Patch Set 2 : rebase and address some review feedback #

Total comments: 10

Patch Set 3 : rebase and address review feedback #

Patch Set 4 : no need to use AcquireExternalSurface in the child process side #

Patch Set 5 : rebase #

Total comments: 4

Patch Set 6 : rebase and address review feedback #

Patch Set 7 : build fix #

Patch Set 8 : one last build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+644 lines, -546 lines) Patch
M content/app/android/child_process_service.cc View 1 2 3 4 5 5 chunks +53 lines, -37 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
A content/browser/android/browser_surface_texture_manager.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/android/browser_surface_texture_manager.cc View 1 2 3 4 5 6 1 chunk +133 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.h View 1 2 2 chunks +8 lines, -5 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 1 2 2 chunks +21 lines, -10 lines 0 comments Download
D content/browser/android/surface_texture_peer_browser_impl.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D content/browser/android/surface_texture_peer_browser_impl.cc View 1 2 1 chunk +0 lines, -91 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 4 chunks +0 lines, -89 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 chunks +0 lines, -28 lines 0 comments Download
M content/common/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
D content/common/android/surface_texture_lookup.h View 1 chunk +0 lines, -26 lines 0 comments Download
D content/common/android/surface_texture_lookup.cc View 1 chunk +0 lines, -27 lines 0 comments Download
A content/common/android/surface_texture_manager.h View 1 chunk +41 lines, -0 lines 0 comments Download
A + content/common/android/surface_texture_manager.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/common/child_process_messages.h View 2 chunks +0 lines, -10 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_android.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 2 2 chunks +18 lines, -7 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 5 chunks +76 lines, -12 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_android.cc View 1 2 3 chunks +25 lines, -9 lines 0 comments Download
A + content/common/gpu/gpu_memory_buffer_factory_surface_texture.h View 2 chunks +12 lines, -14 lines 0 comments Download
A content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 2 3 4 5 1 chunk +35 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 2 chunks +61 lines, -18 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl View 1 chunk +6 lines, -1 line 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 2 chunks +0 lines, -16 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gl/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D ui/gl/android/surface_texture_tracker.h View 1 chunk +0 lines, -32 lines 0 comments Download
D ui/gl/android/surface_texture_tracker.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M ui/gl/gl.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gl/gl_image_surface_texture.h View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M ui/gl/gl_image_surface_texture.cc View 1 2 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
reveman
Please take a look. https://codereview.chromium.org/634643002/diff/1/content/app/android/child_process_service.cc File content/app/android/child_process_service.cc (right): https://codereview.chromium.org/634643002/diff/1/content/app/android/child_process_service.cc#newcode35 content/app/android/child_process_service.cc:35: public GpuSurfaceLookup { I decided ...
6 years, 2 months ago (2014-10-06 19:05:15 UTC) #2
no sievers
https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc File content/browser/android/child_process_launcher_android.cc (right): https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc#newcode34 content/browser/android/child_process_launcher_android.cc:34: static void SetSurfacePeer( While you're in here .... :) ...
6 years, 2 months ago (2014-10-06 22:28:27 UTC) #3
reveman
PTAL https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc File content/browser/android/child_process_launcher_android.cc (right): https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc#newcode34 content/browser/android/child_process_launcher_android.cc:34: static void SetSurfacePeer( On 2014/10/06 22:28:27, sievers wrote: ...
6 years, 2 months ago (2014-10-07 01:00:21 UTC) #4
no sievers
https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc File content/browser/android/child_process_launcher_android.cc (right): https://codereview.chromium.org/634643002/diff/1/content/browser/android/child_process_launcher_android.cc#newcode34 content/browser/android/child_process_launcher_android.cc:34: static void SetSurfacePeer( On 2014/10/07 01:00:21, reveman wrote: > ...
6 years, 2 months ago (2014-10-07 22:12:45 UTC) #5
no sievers
https://codereview.chromium.org/634643002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): https://codereview.chromium.org/634643002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#newcode268 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:268: Pair<Integer, Integer> key = new Pair<Integer, Integer>(surfaceTextureId, clientId); Also ...
6 years, 2 months ago (2014-10-07 22:23:25 UTC) #6
reveman
PTAL https://codereview.chromium.org/634643002/diff/1/content/common/android/surface_texture_manager.h File content/common/android/surface_texture_manager.h (right): https://codereview.chromium.org/634643002/diff/1/content/common/android/surface_texture_manager.h#newcode16 content/common/android/surface_texture_manager.h:16: class SurfaceTextureManager { On 2014/10/07 22:12:44, sievers wrote: ...
6 years, 2 months ago (2014-10-08 15:56:39 UTC) #7
reveman
piman, sievers, does latest patch look good? I prefer to land this before my big ...
6 years, 2 months ago (2014-10-09 18:54:12 UTC) #9
piman
On 2014/10/09 18:54:12, reveman wrote: > piman, sievers, does latest patch look good? I prefer ...
6 years, 2 months ago (2014-10-09 19:11:30 UTC) #10
piman
also, +sky for ui/gfx
6 years, 2 months ago (2014-10-09 19:11:52 UTC) #12
no sievers
LGTM with register from GPU child process behavior changed back, see comment. https://codereview.chromium.org/634643002/diff/80001/content/app/android/child_process_service.cc File content/app/android/child_process_service.cc ...
6 years, 2 months ago (2014-10-09 19:31:40 UTC) #13
reveman
https://codereview.chromium.org/634643002/diff/80001/content/app/android/child_process_service.cc File content/app/android/child_process_service.cc (right): https://codereview.chromium.org/634643002/diff/80001/content/app/android/child_process_service.cc#newcode58 content/app/android/child_process_service.cc:58: Java_ChildProcessService_createSurfaceTextureSurface( On 2014/10/09 19:31:40, sievers wrote: > Can you ...
6 years, 2 months ago (2014-10-10 02:25:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634643002/440001
6 years, 2 months ago (2014-10-10 02:34:13 UTC) #16
sky
LGTM
6 years, 2 months ago (2014-10-10 02:53:18 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:440001)
6 years, 2 months ago (2014-10-10 03:32:10 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 03:33:11 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6f3e365094fbeeb0340f90917bde6a0a5889cce3
Cr-Commit-Position: refs/heads/master@{#299052}

Powered by Google App Engine
This is Rietveld 408576698