Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: ui/gl/gl_context.h

Issue 1880923002: GLContext: Remove WasDirtiedExternally methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index 2b4ec0e660920e68bead1121508f5ad90b57731b..87c3f8d76f0ca50698a791bc9dc7fc608eb34dcb 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -127,14 +127,6 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// Returns the GL renderer string. The context must be current.
virtual std::string GetGLRenderer();
- // Return a callback that, when called, indicates that the state the
- // underlying context has been changed by code outside of the command buffer,
- // and will need to be restored.
- virtual base::Closure GetStateWasDirtiedExternallyCallback();
-
- // Restore the context's state if it was dirtied by an external caller.
- virtual void RestoreStateIfDirtiedExternally();
-
protected:
virtual ~GLContext();
@@ -164,9 +156,6 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
virtual void OnSetSwapInterval(int interval) = 0;
- bool GetStateWasDirtiedExternally() const;
- void SetStateWasDirtiedExternally(bool dirtied_externally);
-
private:
friend class base::RefCounted<GLContext>;
@@ -183,8 +172,6 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
int swap_interval_;
bool force_swap_interval_zero_;
- base::CancelableCallback<void()> state_dirtied_callback_;
-
DISALLOW_COPY_AND_ASSIGN(GLContext);
};
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698