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

Unified Diff: cc/resources/gpu_tile_task_worker_pool.cc

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.cc
diff --git a/cc/resources/gpu_tile_task_worker_pool.cc b/cc/resources/gpu_tile_task_worker_pool.cc
index 86157308f4f289164754576019785d23aa8c3a09..05d2c4102b9b1a1820c19e6e77082f7a02fef72f 100644
--- a/cc/resources/gpu_tile_task_worker_pool.cc
+++ b/cc/resources/gpu_tile_task_worker_pool.cc
@@ -39,18 +39,22 @@ class RasterBufferImpl : public RasterBuffer {
// static
scoped_ptr<TileTaskWorkerPool> GpuTileTaskWorkerPool::Create(
base::SequencedTaskRunner* task_runner,
- TaskGraphRunner* task_graph_runner) {
+ TaskGraphRunner* task_graph_runner,
+ ResourceFormat resource_format) {
return make_scoped_ptr<TileTaskWorkerPool>(
- new GpuTileTaskWorkerPool(task_runner, task_graph_runner));
+ new GpuTileTaskWorkerPool(
+ task_runner, task_graph_runner, resource_format));
}
// TODO(hendrikw): This class should be removed. See crbug.com/444938.
GpuTileTaskWorkerPool::GpuTileTaskWorkerPool(
base::SequencedTaskRunner* task_runner,
- TaskGraphRunner* task_graph_runner)
+ TaskGraphRunner* task_graph_runner,
+ ResourceFormat resource_format)
: task_runner_(task_runner),
task_graph_runner_(task_graph_runner),
namespace_token_(task_graph_runner_->GetNamespaceToken()),
+ resource_format_(resource_format),
task_set_finished_weak_ptr_factory_(this),
weak_ptr_factory_(this) {
}
@@ -63,6 +67,10 @@ TileTaskRunner* GpuTileTaskWorkerPool::AsTileTaskRunner() {
return this;
}
+ResourceFormat GpuTileTaskWorkerPool::GetResourceFormat() {
+ return resource_format_;
+}
+
void GpuTileTaskWorkerPool::SetClient(TileTaskRunnerClient* client) {
client_ = client;
}

Powered by Google App Engine
This is Rietveld 408576698