Index: ui/gl/gl_context.h |
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h |
index cdebd686b33eea7f994c4de880d57490cd14298d..c80a59931a88ee68058c9e2a1236290595faef12 100644 |
--- a/ui/gl/gl_context.h |
+++ b/ui/gl/gl_context.h |
@@ -76,7 +76,8 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> { |
void SetGLStateRestorer(GLStateRestorer* state_restorer); |
// Set swap interval. This context must be current. |
- virtual void SetSwapInterval(int interval) = 0; |
+ void SetSwapInterval(int interval); |
+ void ForceSwapIntervalZero(bool force); |
Ken Russell (switch to Gerrit)
2014/12/10 19:52:53
Please add a one-line comment about what the new f
|
// Returns space separated list of extensions. The context must be current. |
virtual std::string GetExtensions(); |
@@ -169,6 +170,8 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> { |
// Returns the last real (non-virtual) GLContext made current. |
static GLContext* GetRealCurrent(); |
+ virtual void OnSetSwapInterval(int interval) = 0; |
+ |
private: |
friend class base::RefCounted<GLContext>; |
@@ -182,6 +185,9 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> { |
std::vector<scoped_refptr<FlushEvent> > flush_events_; |
+ int swap_interval; |
Zhenyao Mo
2014/12/10 01:02:00
end with a "_".
|
+ bool force_swap_interval_zero; |
Zhenyao Mo
2014/12/10 01:02:00
end with a "_".
|
+ |
DISALLOW_COPY_AND_ASSIGN(GLContext); |
}; |