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

Unified Diff: cc/test/test_context_provider.cc

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: 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: cc/test/test_context_provider.cc
diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc
index 99ab62bdce4559e6f8efe729a099fbe14deefb27..37e6eaedc2ea0c115e19b4c83c062670c41d77e8 100644
--- a/cc/test/test_context_provider.cc
+++ b/cc/test/test_context_provider.cc
@@ -84,7 +84,10 @@ TestContextProvider::TestContextProvider(
context_thread_checker_.DetachFromThread();
context_gl_->set_test_context(context3d_.get());
context3d_->set_test_support(support_.get());
- cache_controller_.reset(new ContextCacheController(support_.get()));
+ // Just pass nullptr to the ContextCacheController for its task runner. Idle
+ // handling is tested directly in ContextCacheController's unittests, and
+ // isn't needed here.
+ cache_controller_.reset(new ContextCacheController(support_.get(), nullptr));
}
TestContextProvider::~TestContextProvider() {

Powered by Google App Engine
This is Rietveld 408576698