summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/feature_info.cc
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 21:10:24 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 21:10:24 +0000
commit652257791aa8aa96c53edd18edf2bd8c4dcaec1b (patch)
tree4f88b09862e79a8f6419d503641b943fe476f1ac /gpu/command_buffer/service/feature_info.cc
parenta1b621b3d14415485da5fc2f2df44f6dfcde84fd (diff)
downloadchromium_src-652257791aa8aa96c53edd18edf2bd8c4dcaec1b.zip
chromium_src-652257791aa8aa96c53edd18edf2bd8c4dcaec1b.tar.gz
chromium_src-652257791aa8aa96c53edd18edf2bd8c4dcaec1b.tar.bz2
Drive compositor scheduling with the swapbuffers callback.
This modifies the compositor to hold DoDeferredUpdate until the previous frames are ack'd by the GPU. This vastly improves rendering smoothness. There is some complexity in the way we intercept the SwapBuffers callback due to the different types of GraphicsContexts that get scheduled by render_widget. BUG=80480,53051 Review URL: http://codereview.chromium.org/6902106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/feature_info.cc')
-rw-r--r--gpu/command_buffer/service/feature_info.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 61514a8..3ed88ad 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -108,6 +108,7 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
AddExtensionString("GL_CHROMIUM_resize");
AddExtensionString("GL_CHROMIUM_strict_attribs");
AddExtensionString("GL_CHROMIUM_latch");
+ AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback");
// Only turn this feature on if it is requested. Not by default.
if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
@@ -349,6 +350,3 @@ void FeatureInfo::AddExtensionString(const std::string& str) {
} // namespace gles2
} // namespace gpu
-
-
-