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

Unified Diff: cc/resources/tile_task_worker_pool.h

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/resources/tile_task_runner.cc ('k') | cc/resources/tile_task_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_task_worker_pool.h
diff --git a/cc/resources/tile_task_worker_pool.h b/cc/resources/tile_task_worker_pool.h
deleted file mode 100644
index 90adfd1ab05e4ffa7106cfc00539d219763fd8e0..0000000000000000000000000000000000000000
--- a/cc/resources/tile_task_worker_pool.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
-#define CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
-
-#include "cc/resources/tile_task_runner.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace base {
-class SequencedTaskRunner;
-}
-
-namespace cc {
-class RasterSource;
-class RenderingStatsInstrumentation;
-
-class CC_EXPORT TileTaskWorkerPool {
- public:
- static unsigned kBenchmarkTaskPriority;
- static unsigned kTaskSetFinishedTaskPriorityBase;
- static unsigned kTileTaskPriorityBase;
-
- TileTaskWorkerPool();
- virtual ~TileTaskWorkerPool();
-
- // Utility function that can be used to create a "Task set finished" task that
- // posts |callback| to |task_runner| when run.
- static scoped_refptr<TileTask> CreateTaskSetFinishedTask(
- base::SequencedTaskRunner* task_runner,
- const base::Closure& callback);
-
- // Utility function that can be used to call ::ScheduleOnOriginThread() for
- // each task in |graph|.
- static void ScheduleTasksOnOriginThread(TileTaskClient* client,
- TaskGraph* graph);
-
- // Utility function that can be used to build a task graph. Inserts a node
- // that represents |task| in |graph|. See TaskGraph definition for valid
- // |priority| values.
- static void InsertNodeForTask(TaskGraph* graph,
- TileTask* task,
- unsigned priority,
- size_t dependencies);
-
- // Utility function that can be used to build a task graph. Inserts nodes that
- // represent |task| and all its image decode dependencies in |graph|.
- static void InsertNodesForRasterTask(
- TaskGraph* graph,
- RasterTask* task,
- const ImageDecodeTask::Vector& decode_tasks,
- unsigned priority);
-
- // Utility function that will create a temporary bitmap and copy pixels to
- // |memory| when necessary.
- static void PlaybackToMemory(void* memory,
- ResourceFormat format,
- const gfx::Size& size,
- int stride,
- const RasterSource* raster_source,
- const gfx::Rect& rect,
- float scale);
-
- // Type-checking downcast routine.
- virtual TileTaskRunner* AsTileTaskRunner() = 0;
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_
« no previous file with comments | « cc/resources/tile_task_runner.cc ('k') | cc/resources/tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698