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

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform

Created:
6 years, 10 months ago by Jun Jiang
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, jam, sievers+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable SurfaceTexture based zero-copy texture uploading on Android platform. This is the basic patch to enable zero-copy texture uploading on Android platform. It can run well under "--enable-map-image --enable-surface-texture-buffer" flags. BUG=

Patch Set 1 #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -37 lines) Patch
M cc/resources/resource_provider.cc View 1 chunk +6 lines, -2 lines 1 comment Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +2 lines, -2 lines 1 comment Download
M content/app/android/child_process_service.cc View 2 chunks +13 lines, -0 lines 2 comments Download
M content/browser/android/child_process_launcher_android.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 1 chunk +14 lines, -0 lines 1 comment Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -0 lines 1 comment Download
M content/common/child_process_host_impl.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M content/common/child_process_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 4 chunks +20 lines, -2 lines 1 comment Download
M content/common/gpu/client/gl_helper.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_android.cc View 2 chunks +9 lines, -1 line 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 chunk +44 lines, -0 lines 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 chunk +83 lines, -0 lines 4 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 chunk +7 lines, -0 lines 0 comments Download
A content/common/gpu/surface_texture_bridge_android.h View 1 chunk +37 lines, -0 lines 0 comments Download
A content/common/gpu/surface_texture_bridge_android.cc View 1 chunk +50 lines, -0 lines 1 comment Download
M content/content_common.gypi View 2 chunks +4 lines, -0 lines 1 comment Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 chunk +16 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +1 line, -0 lines 1 comment Download
M content/public/common/content_switches.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +21 lines, -13 lines 1 comment Download
M ipc/ipc_message_utils.h View 1 chunk +16 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 3 chunks +10 lines, -3 lines 2 comments Download
M ui/gl/gl.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_android.cc View 2 chunks +9 lines, -0 lines 0 comments Download
A + ui/gl/gl_image_surface_texture.h View 2 chunks +11 lines, -9 lines 0 comments Download
A ui/gl/gl_image_surface_texture.cc View 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
junj
My original zero-copy texture uploading prototype based on Android GraphicBuffer showed that it could save ...
6 years, 10 months ago (2014-02-25 13:53:03 UTC) #1
junj
On 2014/02/25 13:53:03, junj wrote: > My original zero-copy texture uploading prototype based on Android ...
6 years, 10 months ago (2014-02-25 15:20:54 UTC) #2
junj
Add sohanjg and epennerAtGoogle as well.
6 years, 10 months ago (2014-02-26 07:07:09 UTC) #3
reveman
Just a few comments. I haven't had a chance to look at the overall design ...
6 years, 10 months ago (2014-02-26 08:02:33 UTC) #4
Hongbo Min
Some comments for your reference. https://codereview.chromium.org/177953004/diff/1/content/app/android/child_process_service.cc File content/app/android/child_process_service.cc (right): https://codereview.chromium.org/177953004/diff/1/content/app/android/child_process_service.cc#newcode146 content/app/android/child_process_service.cc:146: window = ANativeWindow_fromSurface(env, jsurface); ...
6 years, 9 months ago (2014-03-18 06:10:02 UTC) #5
junj
On 2014/03/18 06:10:02, Hongbo Min wrote: > Some comments for your reference. > > https://codereview.chromium.org/177953004/diff/1/content/app/android/child_process_service.cc ...
6 years, 9 months ago (2014-03-18 06:27:41 UTC) #6
reveman
6 years, 9 months ago (2014-03-18 08:58:36 UTC) #7
Sohan landed single buffer surface texture support and is working on proper
TEXTURE_EXTERNAL_OES support.

I've taken over the work to land initial support for a surface texture backed
GpuMemoryBuffer type. A patch for that can be found here:
https://codereview.chromium.org/195583003/

Powered by Google App Engine
This is Rietveld 408576698