Index: cc/resources/gpu_tile_task_worker_pool.h |
diff --git a/cc/resources/gpu_tile_task_worker_pool.h b/cc/resources/gpu_tile_task_worker_pool.h |
index 5d35ef9c9baa2880932e54bfc5e7a542570bdc8b..a677c022a8346ecd825631349aa8cb23f7821168 100644 |
--- a/cc/resources/gpu_tile_task_worker_pool.h |
+++ b/cc/resources/gpu_tile_task_worker_pool.h |
@@ -19,10 +19,12 @@ class CC_EXPORT GpuTileTaskWorkerPool : public TileTaskWorkerPool, |
static scoped_ptr<TileTaskWorkerPool> Create( |
base::SequencedTaskRunner* task_runner, |
- TaskGraphRunner* task_graph_runner); |
+ TaskGraphRunner* task_graph_runner, |
+ ResourceFormat resource_format); |
reveman
2015/01/22 23:01:46
Can this just use resource_provider->best_texture_
peterp
2015/01/23 13:19:06
Then we have to pass in and store the ResourceProv
|
// Overridden from TileTaskWorkerPool: |
TileTaskRunner* AsTileTaskRunner() override; |
+ ResourceFormat GetResourceFormat() override; |
// Overridden from TileTaskRunner: |
void SetClient(TileTaskRunnerClient* client) override; |
@@ -37,7 +39,8 @@ class CC_EXPORT GpuTileTaskWorkerPool : public TileTaskWorkerPool, |
private: |
GpuTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, |
- TaskGraphRunner* task_graph_runner); |
+ TaskGraphRunner* task_graph_runner, |
+ ResourceFormat resource_format); |
void OnTaskSetFinished(TaskSet task_set); |
void CompleteTasks(const Task::Vector& tasks); |
@@ -46,6 +49,7 @@ class CC_EXPORT GpuTileTaskWorkerPool : public TileTaskWorkerPool, |
TaskGraphRunner* task_graph_runner_; |
const NamespaceToken namespace_token_; |
TileTaskRunnerClient* client_; |
+ ResourceFormat resource_format_; |
TaskSetCollection tasks_pending_; |