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

Unified Diff: android_webview/browser/aw_render_thread_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: android_webview/browser/aw_render_thread_context_provider.h
diff --git a/android_webview/browser/aw_render_thread_context_provider.h b/android_webview/browser/aw_render_thread_context_provider.h
index e2e45fbdba9eb385f96d038eba27597f83cd5825..1ba6e2ff05383305b80980aad05ddad1391376dc 100644
--- a/android_webview/browser/aw_render_thread_context_provider.h
+++ b/android_webview/browser/aw_render_thread_context_provider.h
@@ -48,9 +48,9 @@ class AwRenderThreadContextProvider : 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;
- void DeleteCachedResources() override;
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
@@ -59,6 +59,7 @@ class AwRenderThreadContextProvider : public cc::ContextProvider {
base::ThreadChecker main_thread_checker_;
std::unique_ptr<gpu::GLInProcessContext> context_;
+ std::unique_ptr<cc::ContextCacheController> cache_controller_;
danakj 2016/08/26 23:49:08 This has a pointer to the gr_context_ so it should
ericrk 2016/08/29 22:43:22 Done.
sk_sp<class GrContext> gr_context_;
LostContextCallback lost_context_callback_;

Powered by Google App Engine
This is Rietveld 408576698