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

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

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: feedback 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/demo/bitmap_uploader.cc ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/context_provider.cc
diff --git a/services/ui/public/cpp/context_provider.cc b/services/ui/public/cpp/context_provider.cc
index 55b16d2574fa3a49f4bfb2626b22f2d463968773..b1826925bde0bd696da11255c40ae73ee81ebedc 100644
--- a/services/ui/public/cpp/context_provider.cc
+++ b/services/ui/public/cpp/context_provider.cc
@@ -18,10 +18,11 @@ ContextProvider::ContextProvider(
: gpu_channel_host_(std::move(gpu_channel_host)) {}
bool ContextProvider::BindToCurrentThread() {
- context_ = GLES2Context::CreateOffscreenContext(gpu_channel_host_);
+ context_ = GLES2Context::CreateOffscreenContext(
+ gpu_channel_host_, base::ThreadTaskRunnerHandle::Get());
if (context_) {
- cache_controller_.reset(
- new cc::ContextCacheController(context_->context_support()));
+ cache_controller_.reset(new cc::ContextCacheController(
+ context_->context_support(), base::ThreadTaskRunnerHandle::Get()));
}
return !!context_;
}
« no previous file with comments | « services/ui/demo/bitmap_uploader.cc ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698