| 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..76cc00bacf9960ba35349c43ec09920e06d6d643 100644
|
| --- a/services/ui/public/cpp/context_provider.cc
|
| +++ b/services/ui/public/cpp/context_provider.cc
|
| @@ -18,10 +18,12 @@ ContextProvider::ContextProvider(
|
| : gpu_channel_host_(std::move(gpu_channel_host)) {}
|
|
|
| bool ContextProvider::BindToCurrentThread() {
|
| - context_ = GLES2Context::CreateOffscreenContext(gpu_channel_host_);
|
| + auto task_runner = base::ThreadTaskRunnerHandle::Get();
|
| + context_ =
|
| + GLES2Context::CreateOffscreenContext(gpu_channel_host_, task_runner);
|
| if (context_) {
|
| - cache_controller_.reset(
|
| - new cc::ContextCacheController(context_->context_support()));
|
| + cache_controller_.reset(new cc::ContextCacheController(
|
| + context_->context_support(), std::move(task_runner)));
|
| }
|
| return !!context_;
|
| }
|
|
|