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

Unified Diff: cc/resources/direct_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/cc.gyp ('k') | cc/resources/direct_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/direct_raster_worker_pool.h
diff --git a/cc/resources/direct_raster_worker_pool.h b/cc/resources/direct_raster_worker_pool.h
deleted file mode 100644
index 8194b4f2d6cac18aea34e04bb1d40a488cfb569f..0000000000000000000000000000000000000000
--- a/cc/resources/direct_raster_worker_pool.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2014 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_DIRECT_RASTER_WORKER_POOL_H_
-#define CC_RESOURCES_DIRECT_RASTER_WORKER_POOL_H_
-
-#include "base/memory/weak_ptr.h"
-#include "cc/resources/raster_worker_pool.h"
-#include "cc/resources/rasterizer.h"
-
-namespace cc {
-class ContextProvider;
-class ResourceProvider;
-
-class CC_EXPORT DirectRasterWorkerPool : public RasterWorkerPool,
- public Rasterizer,
- public RasterizerTaskClient {
- public:
- virtual ~DirectRasterWorkerPool();
-
- static scoped_ptr<RasterWorkerPool> Create(
- base::SequencedTaskRunner* task_runner,
- ResourceProvider* resource_provider,
- ContextProvider* context_provider);
-
- // Overridden from RasterWorkerPool:
- virtual Rasterizer* AsRasterizer() OVERRIDE;
-
- // Overridden from Rasterizer:
- virtual void SetClient(RasterizerClient* client) OVERRIDE;
- virtual void Shutdown() OVERRIDE;
- virtual void ScheduleTasks(RasterTaskQueue* queue) OVERRIDE;
- virtual void CheckForCompletedTasks() OVERRIDE;
-
- // Overridden from RasterizerTaskClient:
- virtual SkCanvas* AcquireCanvasForRaster(RasterTask* task) OVERRIDE;
- virtual void ReleaseCanvasForRaster(RasterTask* task) OVERRIDE;
-
- private:
- DirectRasterWorkerPool(base::SequencedTaskRunner* task_runner,
- ResourceProvider* resource_provider,
- ContextProvider* context_provider);
-
- void OnRasterFinished();
- void OnRasterRequiredForActivationFinished();
- void ScheduleRunTasksOnOriginThread();
- void RunTasksOnOriginThread();
- void RunTaskOnOriginThread(RasterizerTask* task);
-
- scoped_refptr<base::SequencedTaskRunner> task_runner_;
- scoped_ptr<TaskGraphRunner> task_graph_runner_;
- const NamespaceToken namespace_token_;
- RasterizerClient* client_;
- ResourceProvider* resource_provider_;
- ContextProvider* context_provider_;
-
- bool run_tasks_on_origin_thread_pending_;
-
- bool raster_tasks_pending_;
- bool raster_tasks_required_for_activation_pending_;
-
- base::WeakPtrFactory<DirectRasterWorkerPool>
- raster_finished_weak_ptr_factory_;
-
- scoped_refptr<RasterizerTask> raster_finished_task_;
- scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
-
- // Task graph used when scheduling tasks and vector used to gather
- // completed tasks.
- TaskGraph graph_;
- Task::Vector completed_tasks_;
-
- base::WeakPtrFactory<DirectRasterWorkerPool> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(DirectRasterWorkerPool);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_DIRECT_RASTER_WORKER_POOL_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/direct_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698