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

Unified Diff: cc/resources/resource_update_controller.h

Issue 17362002: cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-fakethread: rebase Created 7 years, 6 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 | « cc/output/output_surface_unittest.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_update_controller.h
diff --git a/cc/resources/resource_update_controller.h b/cc/resources/resource_update_controller.h
index 39ce75d93d7307a8ba6959211e44679a9a06c5e8..b9fbfe10c4d7af3511c59c35276759a8e253ce46 100644
--- a/cc/resources/resource_update_controller.h
+++ b/cc/resources/resource_update_controller.h
@@ -12,10 +12,11 @@
#include "cc/base/cc_export.h"
#include "cc/resources/resource_update_queue.h"
+namespace base { class SingleThreadTaskRunner; }
+
namespace cc {
class ResourceProvider;
-class Thread;
class ResourceUpdateControllerClient {
public:
@@ -29,11 +30,11 @@ class CC_EXPORT ResourceUpdateController {
public:
static scoped_ptr<ResourceUpdateController> Create(
ResourceUpdateControllerClient* client,
- Thread* thread,
+ base::SingleThreadTaskRunner* task_runner,
scoped_ptr<ResourceUpdateQueue> queue,
ResourceProvider* resource_provider) {
return make_scoped_ptr(new ResourceUpdateController(
- client, thread, queue.Pass(), resource_provider));
+ client, task_runner, queue.Pass(), resource_provider));
}
static size_t MaxPartialTextureUpdates();
@@ -53,7 +54,7 @@ class CC_EXPORT ResourceUpdateController {
protected:
ResourceUpdateController(ResourceUpdateControllerClient* client,
- Thread* thread,
+ base::SingleThreadTaskRunner* task_runner,
scoped_ptr<ResourceUpdateQueue> queue,
ResourceProvider* resource_provider);
@@ -77,7 +78,7 @@ class CC_EXPORT ResourceUpdateController {
base::TimeTicks time_limit_;
size_t texture_updates_per_tick_;
bool first_update_attempt_;
- Thread* thread_;
+ base::SingleThreadTaskRunner* task_runner_;
base::WeakPtrFactory<ResourceUpdateController> weak_factory_;
bool task_posted_;
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698