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

Unified Diff: cc/output/context_provider.h

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: feedback Created 4 years, 4 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
Index: cc/output/context_provider.h
diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h
index 2245b643e134b464d0db441cd4bd5dfae0ca2d2e..3a9875589e28b3f6ed4d07dcc300d565eb20714e 100644
--- a/cc/output/context_provider.h
+++ b/cc/output/context_provider.h
@@ -26,6 +26,7 @@ namespace gles2 { class GLES2Interface; }
}
namespace cc {
+class ContextCacheController;
struct ManagedMemoryPolicy;
class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
@@ -68,6 +69,7 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
virtual gpu::gles2::GLES2Interface* ContextGL() = 0;
virtual gpu::ContextSupport* ContextSupport() = 0;
virtual class GrContext* GrContext() = 0;
+ virtual ContextCacheController* CacheController() = 0;
// Invalidates the cached OpenGL state in GrContext.
// See skia GrContext::resetContext for details.
@@ -76,9 +78,6 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
// Returns the capabilities of the currently bound 3d context.
virtual gpu::Capabilities ContextCapabilities() = 0;
- // Delete all cached gpu resources.
- virtual void DeleteCachedResources() = 0;
-
// Sets a callback to be called when the context is lost. This should be
// called from the same thread that the context is bound to. To avoid races,
// it should be called before BindToCurrentThread().

Powered by Google App Engine
This is Rietveld 408576698