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

Unified Diff: cc/resources/gpu_tile_task_worker_pool.h

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error in perftest. Created 5 years, 11 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/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_;

Powered by Google App Engine
This is Rietveld 408576698