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

Unified Diff: services/ui/public/cpp/context_provider.h

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: fix compositor_unittests 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: services/ui/public/cpp/context_provider.h
diff --git a/services/ui/public/cpp/context_provider.h b/services/ui/public/cpp/context_provider.h
index d8ea776b9de8b5a5e126a0ecf6db93ebbfc2a536..5a0539bb7750d9a0cbf33c110b69fa6bf1e999b8 100644
--- a/services/ui/public/cpp/context_provider.h
+++ b/services/ui/public/cpp/context_provider.h
@@ -34,10 +34,10 @@ class ContextProvider : public cc::ContextProvider {
gpu::gles2::GLES2Interface* ContextGL() override;
gpu::ContextSupport* ContextSupport() override;
class GrContext* GrContext() override;
+ cc::ContextCacheController* CacheController() override;
void InvalidateGrContext(uint32_t state) override;
base::Lock* GetLock() override;
gpu::Capabilities ContextCapabilities() override;
- void DeleteCachedResources() override {}
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override {}
@@ -47,6 +47,7 @@ class ContextProvider : public cc::ContextProvider {
private:
std::unique_ptr<GLES2Context> context_;
+ std::unique_ptr<cc::ContextCacheController> cache_controller_;
scoped_refptr<gpu::GpuChannelHost> gpu_channel_host_;
DISALLOW_COPY_AND_ASSIGN(ContextProvider);

Powered by Google App Engine
This is Rietveld 408576698