diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 20:52:23 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 20:52:23 +0000 |
commit | 069944679816b4646248a47f19a49ebeb38e88ec (patch) | |
tree | 72bc253e39154505ce1b6ef1df7d1f96e17e8191 /gpu/gles2_conform_support | |
parent | 92e1a00ddcbb8b672368046bfeda5f6c145d777c (diff) | |
download | chromium_src-069944679816b4646248a47f19a49ebeb38e88ec.zip chromium_src-069944679816b4646248a47f19a49ebeb38e88ec.tar.gz chromium_src-069944679816b4646248a47f19a49ebeb38e88ec.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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131177
Review URL: http://codereview.chromium.org/10007034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133975 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gles2_conform_support')
-rw-r--r-- | gpu/gles2_conform_support/egl/display.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc index d3dbc08..bc07fae 100644 --- a/gpu/gles2_conform_support/egl/display.cc +++ b/gpu/gles2_conform_support/egl/display.cc @@ -112,6 +112,7 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config, std::vector<int32> attribs; if (!decoder_->Initialize(gl_surface_.get(), gl_context_.get(), + gl_surface_->IsOffscreen(), gfx::Size(), gpu::gles2::DisallowedFeatures(), NULL, |