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

Issue 7552039: Vend common GL context (Closed)

Created:
9 years, 4 months ago by jonathan.backer
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Vend common GL context We can't rely on having a compositor for set-up and tear-down of cross process texture transport. This CL creates a shared offscreen context appropriate for that. It further separates TextureGL objects from CompositorGL objects. In particular - I've plumbed through the size of the surface backing the Compositor to the Texture - I've allows the TextureGL to release it's GL resources using the shared context It's necessary to make the vendor of the offscreen context a LeakySingletonTrait singleton so that we don't race with destruction of GL bindings on process shutdown. BUG=fixes dereferencing NULL pointers in RWHVVTouch when images come from GPU process TEST=3D CSS on TOUCH_UI, views_desktop on Windows Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98441

Patch Set 1 #

Patch Set 2 : Merge with ToT #

Total comments: 11

Patch Set 3 : Address reviewer comments. #

Total comments: 4

Patch Set 4 : Address reviewer comments. #

Patch Set 5 : Address reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -270 lines) Patch
M chrome/browser/renderer_host/accelerated_surface_container_touch.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/renderer_host/accelerated_surface_container_touch.cc View 1 2 12 chunks +32 lines, -23 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views_touch.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/compositor/compositor.h View 1 2 3 4 3 chunks +17 lines, -3 lines 0 comments Download
M ui/gfx/compositor/compositor_gl.h View 1 2 6 chunks +45 lines, -8 lines 0 comments Download
M ui/gfx/compositor/compositor_gl.cc View 1 2 3 4 9 chunks +129 lines, -129 lines 0 comments Download
M ui/gfx/compositor/compositor_win.cc View 1 2 3 15 chunks +82 lines, -99 lines 0 comments Download
M ui/gfx/compositor/layer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M views/view_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M views/widget/native_widget_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
jonathan.backer
9 years, 4 months ago (2011-08-24 18:44:53 UTC) #1
sky
http://codereview.chromium.org/7552039/diff/4001/ui/gfx/compositor/compositor.h File ui/gfx/compositor/compositor.h (right): http://codereview.chromium.org/7552039/diff/4001/ui/gfx/compositor/compositor.h#newcode54 ui/gfx/compositor/compositor.h:54: const gfx::Size& surface_size) = 0; Move this into TextureDrawParams. ...
9 years, 4 months ago (2011-08-24 21:17:08 UTC) #2
jonathan.backer
+kbr@
9 years, 4 months ago (2011-08-24 22:03:02 UTC) #3
Ken Russell (switch to Gerrit)
The refactoring of the shared resources LGTM; one comment. http://codereview.chromium.org/7552039/diff/4001/ui/gfx/compositor/compositor_gl.cc File ui/gfx/compositor/compositor_gl.cc (right): http://codereview.chromium.org/7552039/diff/4001/ui/gfx/compositor/compositor_gl.cc#newcode203 ui/gfx/compositor/compositor_gl.cc:203: ...
9 years, 4 months ago (2011-08-25 04:42:17 UTC) #4
jonathan.backer
Tested on views_desktop for linux. Looking for green on linux_views to make sure that I ...
9 years, 4 months ago (2011-08-25 18:57:18 UTC) #5
jonathan.backer
Errrr. On views_desktop for Windows.
9 years, 4 months ago (2011-08-25 20:57:33 UTC) #6
sky
http://codereview.chromium.org/7552039/diff/13001/ui/gfx/compositor/compositor.h File ui/gfx/compositor/compositor.h (right): http://codereview.chromium.org/7552039/diff/13001/ui/gfx/compositor/compositor.h#newcode24 ui/gfx/compositor/compositor.h:24: TextureDrawParams() : transform(), blend(false), compositor_size(1,1) {} Why the 1x1 ...
9 years, 4 months ago (2011-08-25 21:15:55 UTC) #7
jonathan.backer
http://codereview.chromium.org/7552039/diff/13001/ui/gfx/compositor/compositor.h File ui/gfx/compositor/compositor.h (right): http://codereview.chromium.org/7552039/diff/13001/ui/gfx/compositor/compositor.h#newcode24 ui/gfx/compositor/compositor.h:24: TextureDrawParams() : transform(), blend(false), compositor_size(1,1) {} On 2011/08/25 21:15:55, ...
9 years, 4 months ago (2011-08-26 11:45:55 UTC) #8
jonathan.backer
Updated as per chat with sky@.
9 years, 4 months ago (2011-08-26 15:43:23 UTC) #9
sky
9 years, 4 months ago (2011-08-26 15:44:15 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698