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

Unified Diff: cc/output/context_cache_controller.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: cc/output/context_cache_controller.cc
diff --git a/cc/output/context_cache_controller.cc b/cc/output/context_cache_controller.cc
index 9042d47be0b94da5d82ec664ade901b5e287004b..218059dd1780531bd90debf3b0f8884b5a92cb6a 100644
--- a/cc/output/context_cache_controller.cc
+++ b/cc/output/context_cache_controller.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
+#include "base/single_thread_task_runner.h"
#include "gpu/command_buffer/client/context_support.h"
#include "third_party/skia/include/gpu/GrContext.h"
@@ -22,8 +23,9 @@ void ContextCacheController::ScopedVisibility::Release() {
}
ContextCacheController::ContextCacheController(
- gpu::ContextSupport* context_support)
- : context_support_(context_support) {}
+ gpu::ContextSupport* context_support,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : context_support_(context_support), task_runner_(std::move(task_runner)) {}
ContextCacheController::~ContextCacheController() = default;

Powered by Google App Engine
This is Rietveld 408576698