summaryrefslogtreecommitdiffstats
path: root/gpu/demos/framework/window.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 20:11:43 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 20:11:43 +0000
commit1345c560d2e1857039d2cd2926b9d2201396daad (patch)
treeee466f7b26e9428cae6d0a37f8723c58c0f41d58 /gpu/demos/framework/window.cc
parent776ce72105da07de1ce2bb4233462122e6395454 (diff)
downloadchromium_src-1345c560d2e1857039d2cd2926b9d2201396daad.zip
chromium_src-1345c560d2e1857039d2cd2926b9d2201396daad.tar.gz
chromium_src-1345c560d2e1857039d2cd2926b9d2201396daad.tar.bz2
aura: Change shared context to be offscreen for arm
ARM drivers don't like to have 2 EGLSurface on the same Window. So we need to make the UI shared context offscren. This also requires the image transport surface to be an "offscreen" GLSurface (a pbuffer), however the GLES2Decoder needs to be "onscreen" (i.e. it calls SwapBuffers on the surface instead managing the offscreen buffers itself). So this decouples the 2 notions of "offscreen". BUG=chrome-os-partner:8284 TEST=gpu_unittests. Aura chrome --ui-use-gpu-process with poster circle and webgl on tegra, lumpy, desktop GL. Desktop chrome with poster circle and webgl. Review URL: http://codereview.chromium.org/10007034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/demos/framework/window.cc')
-rw-r--r--gpu/demos/framework/window.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/demos/framework/window.cc b/gpu/demos/framework/window.cc
index d5cd3cf..35b6ea9 100644
--- a/gpu/demos/framework/window.cc
+++ b/gpu/demos/framework/window.cc
@@ -94,6 +94,7 @@ bool Window::CreateRenderContext(gfx::AcceleratedWidget hwnd) {
std::vector<int32> attribs;
if (!decoder_->Initialize(surface_.get(),
context_.get(),
+ surface_->IsOffscreen(),
gfx::Size(),
gpu::gles2::DisallowedFeatures(),
NULL,