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

Unified Diff: cc/resources/zero_copy_raster_worker_pool.h

Issue 584393003: cc: Use more explicit names for CHROMIUM_image based rasterizer implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/raster_worker_pool_unittest.cc ('k') | cc/resources/zero_copy_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/zero_copy_raster_worker_pool.h
diff --git a/cc/resources/image_raster_worker_pool.h b/cc/resources/zero_copy_raster_worker_pool.h
similarity index 70%
rename from cc/resources/image_raster_worker_pool.h
rename to cc/resources/zero_copy_raster_worker_pool.h
index ae9041f7751d675b47d5fc14b0de92ef05976658..4e4280e43ef7d074b176e64298bcfb29e88baac9 100644
--- a/cc/resources/image_raster_worker_pool.h
+++ b/cc/resources/zero_copy_raster_worker_pool.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
-#define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
+#ifndef CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
+#define CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
#include "base/memory/weak_ptr.h"
#include "base/values.h"
@@ -19,11 +19,11 @@ class ConvertableToTraceFormat;
namespace cc {
class ResourceProvider;
-class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
- public Rasterizer,
- public RasterizerTaskClient {
+class CC_EXPORT ZeroCopyRasterWorkerPool : public RasterWorkerPool,
+ public Rasterizer,
+ public RasterizerTaskClient {
public:
- virtual ~ImageRasterWorkerPool();
+ virtual ~ZeroCopyRasterWorkerPool();
static scoped_ptr<RasterWorkerPool> Create(
base::SequencedTaskRunner* task_runner,
@@ -45,9 +45,9 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) OVERRIDE;
protected:
- ImageRasterWorkerPool(base::SequencedTaskRunner* task_runner,
- TaskGraphRunner* task_graph_runner,
- ResourceProvider* resource_provider);
+ ZeroCopyRasterWorkerPool(base::SequencedTaskRunner* task_runner,
+ TaskGraphRunner* task_graph_runner,
+ ResourceProvider* resource_provider);
private:
void OnRasterFinished(TaskSet task_set);
@@ -68,11 +68,12 @@ class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool,
TaskGraph graph_;
Task::Vector completed_tasks_;
- base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_;
+ base::WeakPtrFactory<ZeroCopyRasterWorkerPool>
+ raster_finished_weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
+ DISALLOW_COPY_AND_ASSIGN(ZeroCopyRasterWorkerPool);
};
} // namespace cc
-#endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
+#endif // CC_RESOURCES_ZERO_COPY_RASTER_WORKER_POOL_H_
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/zero_copy_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698