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

Issue 7980006: Implement OSMesa image transport for TOUCH_UI builds (Closed)

Created:
9 years, 3 months ago by danakj
Modified:
8 years, 7 months ago
CC:
chromium-reviews, dpranke+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Implements OSMesaImageTransportSurface in the GPU for sending GLSurface from the GPU to the browser. Implements AcceleratedSurfaceContainerTouchOSMesa in the browser's renderer for receiving a GLSurface contents and building a GLTexture in the browser for compositing. BUG= TEST=./out/Debug/chrome --use-gl=osmesa --show-fps-counter Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102500

Patch Set 1 #

Patch Set 2 : Rebase onto newer trunk #

Total comments: 2

Patch Set 3 : Working shared memory transport for GLX mode. #

Patch Set 4 : Getting OSMesa to work #

Patch Set 5 : Got rid of id_ and id() in the AcceleratedSurfaceContainerTouch #

Patch Set 6 : Cleanups #

Patch Set 7 : 0copy in GPU for OSMesa #

Patch Set 8 : Rebase onto newer trunk #

Total comments: 17

Patch Set 9 : Cleanups from backer@ #

Patch Set 10 : Don't ignore error return values. #

Patch Set 11 : Fix mac build #

Total comments: 11

Patch Set 12 : Fixed from sky@ #

Patch Set 13 : Nits from apatrick@ #

Patch Set 14 : Fix test build for touch #

Patch Set 15 : Fix mac build for tryjob #

Patch Set 16 : git try #

Patch Set 17 : Add DEP for mesa where needed #

Patch Set 18 : rebase on lkgr #

Patch Set 19 : Re-uploading to get OWNERS check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -89 lines) Patch
M chrome/browser/renderer_host/accelerated_surface_container_touch.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/accelerated_surface_container_touch.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +128 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views_touch.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +15 lines, -6 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +18 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/gpu/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -10 lines 0 comments Download
M content/common/gpu/image_transport_surface_linux.h View 1 2 3 3 chunks +13 lines, -8 lines 0 comments Download
M content/common/gpu/image_transport_surface_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +193 lines, -21 lines 0 comments Download
M ui/gfx/gl/gl_context_osmesa.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/gl/gl_surface_glx.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
jonathan.backer
http://codereview.chromium.org/7980006/diff/2001/chrome/browser/renderer_host/accelerated_surface_container_touch.h File chrome/browser/renderer_host/accelerated_surface_container_touch.h (right): http://codereview.chromium.org/7980006/diff/2001/chrome/browser/renderer_host/accelerated_surface_container_touch.h#newcode39 chrome/browser/renderer_host/accelerated_surface_container_touch.h:39: uint64 id_; Nuke this? http://codereview.chromium.org/7980006/diff/2001/content/common/gpu/image_transport_surface_linux.cc File content/common/gpu/image_transport_surface_linux.cc (right): http://codereview.chromium.org/7980006/diff/2001/content/common/gpu/image_transport_surface_linux.cc#newcode557 ...
9 years, 3 months ago (2011-09-20 15:16:29 UTC) #1
danakj
On 2011/09/20 15:16:29, jonathan.backer wrote: > http://codereview.chromium.org/7980006/diff/2001/chrome/browser/renderer_host/accelerated_surface_container_touch.h > File chrome/browser/renderer_host/accelerated_surface_container_touch.h (right): > > http://codereview.chromium.org/7980006/diff/2001/chrome/browser/renderer_host/accelerated_surface_container_touch.h#newcode39 > ...
9 years, 3 months ago (2011-09-21 17:45:22 UTC) #2
danakj
Currently IPC messages are as follows: SurfaceNew(identifier) -> To notify/request for a new surface SurfaceNewACK(identifier, ...
9 years, 3 months ago (2011-09-21 18:18:57 UTC) #3
jonathan.backer
Mostly nits. It's clear to me you need to compile on Mac. For next round, ...
9 years, 3 months ago (2011-09-21 20:27:36 UTC) #4
danakj
If we don't rename the MACOSX IPC then I need to duplicate some code inside ...
9 years, 3 months ago (2011-09-21 20:58:19 UTC) #5
danakj
Ok, all nits taken care of and submitted. I will test compile on a mac ...
9 years, 3 months ago (2011-09-21 21:15:37 UTC) #6
sky
Just style nits. http://codereview.chromium.org/7980006/diff/4033/chrome/browser/renderer_host/accelerated_surface_container_touch.cc File chrome/browser/renderer_host/accelerated_surface_container_touch.cc (right): http://codereview.chromium.org/7980006/diff/4033/chrome/browser/renderer_host/accelerated_surface_container_touch.cc#newcode27 chrome/browser/renderer_host/accelerated_surface_container_touch.cc:27: virtual bool Initialize(uint64 *surface_id) OVERRIDE; 'uint64 ...
9 years, 3 months ago (2011-09-21 21:39:55 UTC) #7
apatrick_chromium
One nit. Let's see how the try bots do... http://codereview.chromium.org/7980006/diff/4033/content/common/gpu/image_transport_surface_linux.cc File content/common/gpu/image_transport_surface_linux.cc (right): http://codereview.chromium.org/7980006/diff/4033/content/common/gpu/image_transport_surface_linux.cc#newcode125 content/common/gpu/image_transport_surface_linux.cc:125: ...
9 years, 3 months ago (2011-09-21 22:07:51 UTC) #8
danakj
On 2011/09/21 21:39:55, sky wrote: > Just style nits. Thanks, I've got them all addressed ...
9 years, 3 months ago (2011-09-21 22:10:19 UTC) #9
sky
LGTM
9 years, 3 months ago (2011-09-21 22:17:02 UTC) #10
danakj
try bots clear!
9 years, 3 months ago (2011-09-22 14:40:04 UTC) #11
jonathan.backer
On 2011/09/22 14:40:04, danakj wrote: > try bots clear! Tested by hand on OSX. No ...
9 years, 3 months ago (2011-09-22 17:04:44 UTC) #12
apatrick_chromium
LGTM
9 years, 3 months ago (2011-09-22 21:01:01 UTC) #13
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/7980006/4034
9 years, 3 months ago (2011-09-22 21:06:28 UTC) #14
commit-bot: I haz the power
Can't apply patch for file content/common/gpu/DEPS. While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
9 years, 3 months ago (2011-09-22 21:06:34 UTC) #15
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/7980006/12002
9 years, 3 months ago (2011-09-23 13:47:25 UTC) #16
commit-bot: I haz the power
Can't apply patch for file content/common/gpu/DEPS. While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
9 years, 3 months ago (2011-09-23 13:47:30 UTC) #17
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/7980006/12002
9 years, 3 months ago (2011-09-23 15:04:23 UTC) #18
commit-bot: I haz the power
Can't apply patch for file content/common/gpu/DEPS. While running patch -p1 --forward --force; patching file content/common/gpu/DEPS ...
9 years, 3 months ago (2011-09-23 15:04:28 UTC) #19
M-A Ruel
8 years, 7 months ago (2012-05-18 14:28:27 UTC) #20
On 2011/09/23 15:04:28, I haz the power (commit-bot) wrote:
> Can't apply patch for file content/common/gpu/DEPS.
> While running patch -p1 --forward --force;
> patching file content/common/gpu/DEPS
> Hunk #1 FAILED at 7.
> 1 out of 1 hunk FAILED -- saving rejects to file content/common/gpu/DEPS.rej

BTW, this patch failed to apply because you had edited it on Windows and
converted the file to CRLF. Please don't do that.

Thanks,

M-A

Powered by Google App Engine
This is Rietveld 408576698