summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_surface_win.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-22 02:43:43 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-22 02:43:43 +0000
commitb381ee37106ad606f96912ffc93365d20ee5dde5 (patch)
tree5995832591b6f2a8e14cb0bddbd51d0e7469aa83 /ui/gl/gl_surface_win.cc
parentcdddc0f927a5fac887cc081792189bb06e314dbb (diff)
downloadchromium_src-b381ee37106ad606f96912ffc93365d20ee5dde5.zip
chromium_src-b381ee37106ad606f96912ffc93365d20ee5dde5.tar.gz
chromium_src-b381ee37106ad606f96912ffc93365d20ee5dde5.tar.bz2
Blacklist partial swaps on linux
BUG=339493 Review URL: https://codereview.chromium.org/207443007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_surface_win.cc')
-rw-r--r--ui/gl/gl_surface_win.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/gl/gl_surface_win.cc b/ui/gl/gl_surface_win.cc
index 6307f14..494c7b0 100644
--- a/ui/gl/gl_surface_win.cc
+++ b/ui/gl/gl_surface_win.cc
@@ -33,7 +33,7 @@ class NativeViewGLSurfaceOSMesa : public GLSurfaceOSMesa {
virtual void Destroy() OVERRIDE;
virtual bool IsOffscreen() OVERRIDE;
virtual bool SwapBuffers() OVERRIDE;
- virtual std::string GetExtensions() OVERRIDE;
+ virtual bool SupportsPostSubBuffer() OVERRIDE;
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
private:
@@ -171,11 +171,8 @@ bool NativeViewGLSurfaceOSMesa::SwapBuffers() {
return true;
}
-std::string NativeViewGLSurfaceOSMesa::GetExtensions() {
- std::string extensions = gfx::GLSurfaceOSMesa::GetExtensions();
- extensions += extensions.empty() ? "" : " ";
- extensions += "GL_CHROMIUM_post_sub_buffer";
- return extensions;
+bool NativeViewGLSurfaceOSMesa::SupportsPostSubBuffer() {
+ return true;
}
bool NativeViewGLSurfaceOSMesa::PostSubBuffer(