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

Unified Diff: android_webview/browser/aw_render_thread_context_provider.cc

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: cleanup 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.cc
diff --git a/android_webview/browser/aw_render_thread_context_provider.cc b/android_webview/browser/aw_render_thread_context_provider.cc
index c97f253b5db57cdc81eff987ecc35ad08942fb1e..36ec828186c0327e948100845b199cce05c44c9d 100644
--- a/android_webview/browser/aw_render_thread_context_provider.cc
+++ b/android_webview/browser/aw_render_thread_context_provider.cc
@@ -63,13 +63,14 @@ AwRenderThreadContextProvider::AwRenderThreadContextProvider(
context_.reset(gpu::GLInProcessContext::Create(
service, surface, surface->IsOffscreen(), gfx::kNullAcceleratedWidget,
- nullptr /* share_context */, attributes, limits, nullptr, nullptr));
+ nullptr /* share_context */, attributes, limits, nullptr, nullptr,
+ nullptr));
context_->GetImplementation()->SetLostContextCallback(base::Bind(
&AwRenderThreadContextProvider::OnLostContext, base::Unretained(this)));
cache_controller_.reset(
- new cc::ContextCacheController(context_->GetImplementation()));
+ new cc::ContextCacheController(context_->GetImplementation(), nullptr));
}
AwRenderThreadContextProvider::~AwRenderThreadContextProvider() {

Powered by Google App Engine
This is Rietveld 408576698