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

Unified Diff: ui/compositor/test/in_process_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/surfaces/surfaces_context_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_provider.cc
diff --git a/ui/compositor/test/in_process_context_provider.cc b/ui/compositor/test/in_process_context_provider.cc
index ba3dde4fb1f03a36b074770ea8189b1daf695032..85c1b823070e447e915c38e9a83acc134aafe703 100644
--- a/ui/compositor/test/in_process_context_provider.cc
+++ b/ui/compositor/test/in_process_context_provider.cc
@@ -9,6 +9,7 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/strings/stringprintf.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "cc/output/context_cache_controller.h"
#include "cc/output/managed_memory_policy.h"
@@ -90,13 +91,13 @@ bool InProcessContextProvider::BindToCurrentThread() {
!window_, /* is_offscreen */
window_, (shared_context_ ? shared_context_->context_.get() : nullptr),
attribs_, gpu::SharedMemoryLimits(), gpu_memory_buffer_manager_,
- image_factory_));
+ image_factory_, base::ThreadTaskRunnerHandle::Get()));
if (!context_)
return false;
- cache_controller_.reset(
- new cc::ContextCacheController(context_->GetImplementation()));
+ cache_controller_.reset(new cc::ContextCacheController(
+ context_->GetImplementation(), base::ThreadTaskRunnerHandle::Get()));
}
std::string unique_context_name =
« no previous file with comments | « services/ui/surfaces/surfaces_context_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698