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

Unified Diff: cc/test/fake_tile_task_manager.h

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 years, 8 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/test/fake_tile_manager.cc ('k') | cc/test/fake_tile_task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_tile_task_manager.h
diff --git a/cc/test/fake_tile_task_manager.h b/cc/test/fake_tile_task_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..7fb6af6288ded483a897b9858c22b2f892ecce02
--- /dev/null
+++ b/cc/test/fake_tile_task_manager.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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_TEST_FAKE_TILE_TASK_MANAGER_H_
+#define CC_TEST_FAKE_TILE_TASK_MANAGER_H_
+
+#include "cc/test/fake_raster_buffer_provider.h"
+#include "cc/tiles/tile_task_manager.h"
+
+namespace cc {
+
+// Fake TileTaskManager.
+class FakeTileTaskManagerImpl : public TileTaskManager {
+ public:
+ FakeTileTaskManagerImpl();
+ // Ctor for custom raster buffer provider.
+ FakeTileTaskManagerImpl(
+ std::unique_ptr<RasterBufferProvider> raster_buffer_provider);
+ ~FakeTileTaskManagerImpl() override;
+
+ // Overridden from TileTaskManager:
+ void ScheduleTasks(TaskGraph* graph) override;
+ void CheckForCompletedTasks() override;
+ void Shutdown() override;
+ RasterBufferProvider* GetRasterBufferProvider() const override;
+
+ protected:
+ std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
+ Task::Vector completed_tasks_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_TILE_TASK_MANAGER_H_
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/test/fake_tile_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698