summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_surface_android.cc
diff options
context:
space:
mode:
authorsievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 15:34:29 +0000
committersievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 15:34:29 +0000
commita52c7f7e3429aa84e2ea5362b001d7eb54063584 (patch)
tree3383aeb9053cf8251e5ca0b82196a8bed8750776 /ui/gl/gl_surface_android.cc
parent59bc34541cc823084224f6a8e08a02d79d9f7c5e (diff)
downloadchromium_src-a52c7f7e3429aa84e2ea5362b001d7eb54063584.zip
chromium_src-a52c7f7e3429aa84e2ea5362b001d7eb54063584.tar.gz
chromium_src-a52c7f7e3429aa84e2ea5362b001d7eb54063584.tar.bz2
Add GpuSurfaceTracker::SetNativeWidget() method.
This allows renderer-side compositor contexts to create native EGL surfaces when running kInProcessGpu (i.e. the window handle is set for the RWHV's surface). Essentially, this allows for creating SurfaceTexture producer contexts on Android. Review URL: https://codereview.chromium.org/11336040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_surface_android.cc')
-rw-r--r--ui/gl/gl_surface_android.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gl/gl_surface_android.cc b/ui/gl/gl_surface_android.cc
index 9e90699..76002b7 100644
--- a/ui/gl/gl_surface_android.cc
+++ b/ui/gl/gl_surface_android.cc
@@ -46,8 +46,8 @@ GLSurface::CreateViewGLSurface(bool software, gfx::AcceleratedWidget window) {
switch (GetGLImplementation()) {
case kGLImplementationEGLGLES2: {
- // window is unused
- scoped_refptr<AndroidViewSurface> surface(new AndroidViewSurface());
+ scoped_refptr<GLSurface> surface = window ?
+ new NativeViewGLSurfaceEGL(false, window) : new AndroidViewSurface();
if (!surface->Initialize())
return NULL;
return surface;