diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-24 15:43:19 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-24 15:43:19 +0000 |
commit | 1743af3b377f4e37b666b4badb6113a104f6fbc1 (patch) | |
tree | 53d4d4f56f63ad7953c76ebfefcd5b27f9fe6a59 /third_party | |
parent | cdbfffe2ada95679b3274a2f39d3cd371b76cdc7 (diff) | |
download | chromium_src-1743af3b377f4e37b666b4badb6113a104f6fbc1.zip chromium_src-1743af3b377f4e37b666b4badb6113a104f6fbc1.tar.gz chromium_src-1743af3b377f4e37b666b4badb6113a104f6fbc1.tar.bz2 |
Plumb thru that we cache the front buffer.
This allows us to drop the root layer textures and save on VRAM (10 MB on a 30" display).
WebKit side patch: https://bugs.webkit.org/show_bug.cgi?id=72956
BUG=none
TEST='cat /proc/meminfo | grep Shmem' on Intel graphics and use_aura=1 attached to 30" display
Review URL: http://codereview.chromium.org/8637014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/khronos/GLES2/gl2ext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/khronos/GLES2/gl2ext.h b/third_party/khronos/GLES2/gl2ext.h index 4ddf729..f1a49dc 100644 --- a/third_party/khronos/GLES2/gl2ext.h +++ b/third_party/khronos/GLES2/gl2ext.h @@ -1366,6 +1366,16 @@ typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUM) (GLint x, GLint y, GLint #endif #endif +/* GL_CHROMIUM_front_buffer_cached */ +/* This extension implies that there is a cache of the front buffer of the + * surface supporting this extension (e.g. on OSX the front buffer + * is often backed by an IOSurface). Hence we do not need to redraw + * (via a SwapBuffers) in order to display the last frame. + */ +#ifndef GL_CHROMIUM_front_buffer_cached +#define GL_CHROMIUM_front_buffer_cached 1 +#endif + /* GL_ARB_robustness */ /* This extension is subsetted for the moment, incorporating only the * enums necessary to describe the reasons that we might encounter for |