summaryrefslogtreecommitdiffstats
path: root/app/gfx/gl/gl_context.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 23:19:16 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 23:19:16 +0000
commit1c0585d585bc9f88ee177553b66e0025d7fe3aa0 (patch)
treedcce9c6dcbe4634483104b236a87e42d694bbeb1 /app/gfx/gl/gl_context.h
parentfd3a7df6c4caaeceb8402daa2c1b357c7f78331f (diff)
downloadchromium_src-1c0585d585bc9f88ee177553b66e0025d7fe3aa0.zip
chromium_src-1c0585d585bc9f88ee177553b66e0025d7fe3aa0.tar.gz
chromium_src-1c0585d585bc9f88ee177553b66e0025d7fe3aa0.tar.bz2
Added switch to disable GPU vsync.
This is useful for GPU performance testing because the vsync caps the frame rate. TEST=try BUG=none Review URL: http://codereview.chromium.org/3380011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/gl/gl_context.h')
-rw-r--r--app/gfx/gl/gl_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/gfx/gl/gl_context.h b/app/gfx/gl/gl_context.h
index 3c1dfe0..5264c4a 100644
--- a/app/gfx/gl/gl_context.h
+++ b/app/gfx/gl/gl_context.h
@@ -6,6 +6,8 @@
#define APP_GFX_GL_GL_CONTEXT_H_
#pragma once
+#include <string>
+
#include "build/build_config.h"
#include "gfx/native_widget_types.h"
#include "gfx/size.h"
@@ -40,9 +42,15 @@ class GLContext {
// Get the underlying platform specific GL context "handle".
virtual void* GetHandle() = 0;
+ // Set swap interval. This context must be current.
+ virtual void SetSwapInterval(int interval) = 0;
+
+ // Returns space separated list of extensions. The context must be current.
+ virtual std::string GetExtensions();
+
// Returns whether the current context supports the named extension. The
// context must be current.
- virtual bool HasExtension(const char* name);
+ bool HasExtension(const char* name);
static bool InitializeOneOff();