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

Unified Diff: cc/output/context_provider.h

Issue 1131723002: Add ContextProvider::InvalidateGrContext to reset GL state in GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to pure virtual InvalidateGrContext Created 5 years, 7 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 | « no previous file | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/context_provider.h
diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h
index 71d06bd7591d22f180f7a395b5be412d733b03bb..39064225f9df74c3feacbce4a628097030071568 100644
--- a/cc/output/context_provider.h
+++ b/cc/output/context_provider.h
@@ -9,8 +9,7 @@
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
#include "gpu/command_buffer/common/capabilities.h"
-
-class GrContext;
+#include "third_party/skia/include/gpu/GrContext.h"
piman 2015/05/07 01:07:08 nit: you shouldn't need this
namespace base {
class Lock;
@@ -44,6 +43,9 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
CC_EXPORT Capabilities();
};
+ // Invalidates the cached OpenGL state in GrContext.
+ virtual void InvalidateGrContext(uint32_t state) = 0;
+
// Sets up a lock so this context can be used from multiple threads.
virtual void SetupLock() = 0;
« no previous file with comments | « no previous file | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698