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

Side by Side Diff: cc/test/fake_tile_task_manager.h

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/raster/tile_task.cc ('k') | cc/test/fake_tile_task_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_FAKE_TILE_TASK_MANAGER_H_ 5 #ifndef CC_TEST_FAKE_TILE_TASK_MANAGER_H_
6 #define CC_TEST_FAKE_TILE_TASK_MANAGER_H_ 6 #define CC_TEST_FAKE_TILE_TASK_MANAGER_H_
7 7
8 #include "cc/test/fake_raster_buffer_provider.h" 8 #include "cc/test/fake_raster_buffer_provider.h"
9 #include "cc/tiles/tile_task_manager.h" 9 #include "cc/tiles/tile_task_manager.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 // Fake TileTaskManager. 13 // This class immediately cancels the scheduled work, i.e. in ScheduleTasks()
14 // it cancels all the tasks.
14 class FakeTileTaskManagerImpl : public TileTaskManager { 15 class FakeTileTaskManagerImpl : public TileTaskManager {
15 public: 16 public:
16 FakeTileTaskManagerImpl(); 17 FakeTileTaskManagerImpl();
17 // Ctor for custom raster buffer provider. 18 // Ctor for custom raster buffer provider.
18 FakeTileTaskManagerImpl( 19 FakeTileTaskManagerImpl(
19 std::unique_ptr<RasterBufferProvider> raster_buffer_provider); 20 std::unique_ptr<RasterBufferProvider> raster_buffer_provider);
20 ~FakeTileTaskManagerImpl() override; 21 ~FakeTileTaskManagerImpl() override;
21 22
22 // Overridden from TileTaskManager: 23 // Overridden from TileTaskManager:
23 void ScheduleTasks(TaskGraph* graph) override; 24 void ScheduleTasks(TaskGraph* graph) override;
24 void CheckForCompletedTasks() override; 25 void CheckForCompletedTasks() override;
25 void Shutdown() override; 26 void Shutdown() override;
26 RasterBufferProvider* GetRasterBufferProvider() const override; 27 RasterBufferProvider* GetRasterBufferProvider() const override;
27 28
28 protected: 29 protected:
29 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_; 30 std::unique_ptr<RasterBufferProvider> raster_buffer_provider_;
30 Task::Vector completed_tasks_; 31 Task::Vector completed_tasks_;
31 }; 32 };
32 33
33 } // namespace cc 34 } // namespace cc
34 35
35 #endif // CC_TEST_FAKE_TILE_TASK_MANAGER_H_ 36 #endif // CC_TEST_FAKE_TILE_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/raster/tile_task.cc ('k') | cc/test/fake_tile_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698