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

Unified Diff: cc/resources/gpu_raster_worker_pool.h

Issue 328263005: cc: Rename DirectRasterWorkerPool to GpuRasterWorkerPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated build.gn file Created 6 years, 6 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/direct_raster_worker_pool.cc ('k') | cc/resources/gpu_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/gpu_raster_worker_pool.h
diff --git a/cc/resources/direct_raster_worker_pool.h b/cc/resources/gpu_raster_worker_pool.h
similarity index 71%
rename from cc/resources/direct_raster_worker_pool.h
rename to cc/resources/gpu_raster_worker_pool.h
index 8194b4f2d6cac18aea34e04bb1d40a488cfb569f..6aed86f856fd070edbd375c8c32e71bca60ce4c4 100644
--- a/cc/resources/direct_raster_worker_pool.h
+++ b/cc/resources/gpu_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_DIRECT_RASTER_WORKER_POOL_H_
-#define CC_RESOURCES_DIRECT_RASTER_WORKER_POOL_H_
+#ifndef CC_RESOURCES_GPU_RASTER_WORKER_POOL_H_
+#define CC_RESOURCES_GPU_RASTER_WORKER_POOL_H_
#include "base/memory/weak_ptr.h"
#include "cc/resources/raster_worker_pool.h"
@@ -13,11 +13,11 @@ namespace cc {
class ContextProvider;
class ResourceProvider;
-class CC_EXPORT DirectRasterWorkerPool : public RasterWorkerPool,
- public Rasterizer,
- public RasterizerTaskClient {
+class CC_EXPORT GpuRasterWorkerPool : public RasterWorkerPool,
+ public Rasterizer,
+ public RasterizerTaskClient {
public:
- virtual ~DirectRasterWorkerPool();
+ virtual ~GpuRasterWorkerPool();
static scoped_ptr<RasterWorkerPool> Create(
base::SequencedTaskRunner* task_runner,
@@ -38,9 +38,9 @@ class CC_EXPORT DirectRasterWorkerPool : public RasterWorkerPool,
virtual void ReleaseCanvasForRaster(RasterTask* task) OVERRIDE;
private:
- DirectRasterWorkerPool(base::SequencedTaskRunner* task_runner,
- ResourceProvider* resource_provider,
- ContextProvider* context_provider);
+ GpuRasterWorkerPool(base::SequencedTaskRunner* task_runner,
+ ResourceProvider* resource_provider,
+ ContextProvider* context_provider);
void OnRasterFinished();
void OnRasterRequiredForActivationFinished();
@@ -60,8 +60,7 @@ class CC_EXPORT DirectRasterWorkerPool : public RasterWorkerPool,
bool raster_tasks_pending_;
bool raster_tasks_required_for_activation_pending_;
- base::WeakPtrFactory<DirectRasterWorkerPool>
- raster_finished_weak_ptr_factory_;
+ base::WeakPtrFactory<GpuRasterWorkerPool> raster_finished_weak_ptr_factory_;
scoped_refptr<RasterizerTask> raster_finished_task_;
scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
@@ -71,11 +70,11 @@ class CC_EXPORT DirectRasterWorkerPool : public RasterWorkerPool,
TaskGraph graph_;
Task::Vector completed_tasks_;
- base::WeakPtrFactory<DirectRasterWorkerPool> weak_ptr_factory_;
+ base::WeakPtrFactory<GpuRasterWorkerPool> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(DirectRasterWorkerPool);
+ DISALLOW_COPY_AND_ASSIGN(GpuRasterWorkerPool);
};
} // namespace cc
-#endif // CC_RESOURCES_DIRECT_RASTER_WORKER_POOL_H_
+#endif // CC_RESOURCES_GPU_RASTER_WORKER_POOL_H_
« no previous file with comments | « cc/resources/direct_raster_worker_pool.cc ('k') | cc/resources/gpu_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698