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

Unified Diff: ui/compositor/test/in_process_context_provider.cc

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: fix unittests 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
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..59998ca00fb1580bfdade7504b24bdd164ed24ab 100644
--- a/ui/compositor/test/in_process_context_provider.cc
+++ b/ui/compositor/test/in_process_context_provider.cc
@@ -90,13 +90,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_, nullptr /* task_runner */));
danakj 2016/09/19 18:59:17 I think you should pass non-null cuz otherwise if
ericrk 2016/09/19 20:00:27 Yeah - fair enough - I was thinking this was fine
if (!context_)
return false;
- cache_controller_.reset(
- new cc::ContextCacheController(context_->GetImplementation()));
+ cache_controller_.reset(new cc::ContextCacheController(
+ context_->GetImplementation(), nullptr /* task_runner */));
}
std::string unique_context_name =
« cc/output/context_cache_controller.h ('K') | « 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