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

Unified Diff: services/ui/surfaces/surfaces_context_provider.h

Issue 2357673002: Refactor client visibility handling (Closed)
Patch Set: Created 4 years, 3 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 | « services/ui/public/cpp/context_provider.cc ('k') | services/ui/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/surfaces_context_provider.h
diff --git a/services/ui/surfaces/surfaces_context_provider.h b/services/ui/surfaces/surfaces_context_provider.h
index 207d3db32cbfe1168a547e85b783dce95b297662..4d77d30b215833451b27646527a7238507eb9604 100644
--- a/services/ui/surfaces/surfaces_context_provider.h
+++ b/services/ui/surfaces/surfaces_context_provider.h
@@ -50,9 +50,9 @@ class SurfacesContextProvider : 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;
gpu::Capabilities ContextCapabilities() override;
- void DeleteCachedResources() override {}
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
base::Lock* GetLock() override;
@@ -79,6 +79,7 @@ class SurfacesContextProvider : public cc::ContextProvider,
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
std::unique_ptr<gpu::TransferBuffer> transfer_buffer_;
std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_;
+ std::unique_ptr<cc::ContextCacheController> cache_controller_;
gpu::Capabilities capabilities_;
LostContextCallback lost_context_callback_;
« no previous file with comments | « services/ui/public/cpp/context_provider.cc ('k') | services/ui/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698