summaryrefslogtreecommitdiffstats
path: root/gpu/gles2_conform_support
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-28 04:00:22 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-28 04:00:22 +0000
commit00b19257a178914bf74acc18d0c8dc41dddd2915 (patch)
treed82f383247f1c21841e3377ca4de8e3e096aa558 /gpu/gles2_conform_support
parenta7a6b495aee605f637f0e02dd8c5a89fefb27c72 (diff)
downloadchromium_src-00b19257a178914bf74acc18d0c8dc41dddd2915.zip
chromium_src-00b19257a178914bf74acc18d0c8dc41dddd2915.tar.gz
chromium_src-00b19257a178914bf74acc18d0c8dc41dddd2915.tar.bz2
Add global tracking of GPU memory allocations. Have each ContextGroup push memory tracking information to the GpuMemoryManager. With this we can determine if we transiently oversubscribe.
BUG=135525 TEST= Review URL: https://chromiumcodereview.appspot.com/10796096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gles2_conform_support')
-rw-r--r--gpu/gles2_conform_support/egl/display.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index 0e92d09..b00770e 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -96,7 +96,9 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
if (!command_buffer->Initialize())
return NULL;
- gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(NULL, true));
+ gpu::gles2::ContextGroup::Ref group(new gpu::gles2::ContextGroup(NULL,
+ NULL,
+ true));
decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get()));
if (!decoder_.get())