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

Issue 22066002: Add FBO support in Android WebView (Closed)

Created:
7 years, 4 months ago by boliu
Modified:
7 years, 4 months ago
Reviewers:
joth, no sievers
CC:
chromium-reviews, jbauman+watch_chromium.org, jam, apatrick_chromium, sievers+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Add FBO support in Android WebView Android can put the webview into an FBO, and compositor should draw into the FBO instead of directly on screen. Idea is to ask the GLSurface to get the FBO binding at the beginning of each draw return it to GLContextVirtual to be restored. Add new APIs in GLInProcessContext and WGC3DIPCBI to allow the underlying GLSurface to be created separately. BUG=251501

Patch Set 1 #

Patch Set 2 : remove blank line #

Total comments: 15

Patch Set 3 : Address joth's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -84 lines) Patch
M content/browser/android/in_process/synchronous_compositor_output_surface.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 5 chunks +55 lines, -9 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 8 chunks +56 lines, -24 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 5 chunks +11 lines, -7 lines 2 comments Download
M ui/gl/gl_surface_stub.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 4 chunks +61 lines, -41 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
boliu
joth and daniel for first pass. So much code, for something so simple...
7 years, 4 months ago (2013-08-04 00:20:47 UTC) #1
joth
plumb plumb plumb. I don't have a lot of value to add..., basically lg2m if ...
7 years, 4 months ago (2013-08-04 00:45:16 UTC) #2
boliu
https://codereview.chromium.org/22066002/diff/2001/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/22066002/diff/2001/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode140 webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:140: // size requests. On 2013/08/04 00:45:16, joth wrote: > ...
7 years, 4 months ago (2013-08-04 00:53:32 UTC) #3
joth
https://codereview.chromium.org/22066002/diff/2001/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc File webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (right): https://codereview.chromium.org/22066002/diff/2001/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc#newcode140 webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc:140: // size requests. On 2013/08/04 00:53:32, boliu wrote: > ...
7 years, 4 months ago (2013-08-04 01:15:50 UTC) #4
boliu
https://codereview.chromium.org/22066002/diff/2001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/22066002/diff/2001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode39 content/browser/android/in_process/synchronous_compositor_output_surface.cc:39: gfx::Size size(1, 1); On 2013/08/04 00:45:16, joth wrote: > ...
7 years, 4 months ago (2013-08-05 16:58:23 UTC) #5
joth
lgtm for synchronous_compositor_output_surface.* and re. my other comments
7 years, 4 months ago (2013-08-05 17:11:19 UTC) #6
no sievers
https://codereview.chromium.org/22066002/diff/11001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/22066002/diff/11001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode289 gpu/command_buffer/service/in_process_command_buffer.cc:289: scoped_refptr<gfx::GLSurface> surface, Hmm, this is dangerous. GLSurface is not ...
7 years, 4 months ago (2013-08-05 20:41:09 UTC) #7
boliu
https://codereview.chromium.org/22066002/diff/11001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/22066002/diff/11001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode289 gpu/command_buffer/service/in_process_command_buffer.cc:289: scoped_refptr<gfx::GLSurface> surface, On 2013/08/05 20:41:09, sievers wrote: > Hmm, ...
7 years, 4 months ago (2013-08-05 20:42:52 UTC) #8
boliu
7 years, 4 months ago (2013-08-06 02:25:31 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698