summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 15:43:19 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 15:43:19 +0000
commit1743af3b377f4e37b666b4badb6113a104f6fbc1 (patch)
tree53d4d4f56f63ad7953c76ebfefcd5b27f9fe6a59 /gpu
parentcdbfffe2ada95679b3274a2f39d3cd371b76cdc7 (diff)
downloadchromium_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 'gpu')
-rw-r--r--gpu/command_buffer/service/feature_info.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 66c05a8..ea74412 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -393,6 +393,10 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
if (ext.HaveAndDesire("GL_CHROMIUM_post_sub_buffer")) {
AddExtensionString("GL_CHROMIUM_post_sub_buffer");
}
+
+ if (ext.HaveAndDesire("GL_CHROMIUM_front_buffer_cached")) {
+ AddExtensionString("GL_CHROMIUM_front_buffer_cached");
+ }
}
void FeatureInfo::AddExtensionString(const std::string& str) {