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

Side by Side Diff: cc/tiles/tile_manager.h

Issue 2541183002: cc: Rename ImageDecodeController to ImageDecodeCache. (Closed)
Patch Set: rename: update Created 4 years 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/tiles/software_image_decode_controller_unittest.cc ('k') | cc/tiles/tile_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TILES_TILE_MANAGER_H_ 5 #ifndef CC_TILES_TILE_MANAGER_H_
6 #define CC_TILES_TILE_MANAGER_H_ 6 #define CC_TILES_TILE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 18 matching lines...) Expand all
29 #include "cc/tiles/tile_task_manager.h" 29 #include "cc/tiles/tile_task_manager.h"
30 30
31 namespace base { 31 namespace base {
32 namespace trace_event { 32 namespace trace_event {
33 class ConvertableToTraceFormat; 33 class ConvertableToTraceFormat;
34 class TracedValue; 34 class TracedValue;
35 } 35 }
36 } 36 }
37 37
38 namespace cc { 38 namespace cc {
39 class ImageDecodeController; 39 class ImageDecodeCache;
40 40
41 class CC_EXPORT TileManagerClient { 41 class CC_EXPORT TileManagerClient {
42 public: 42 public:
43 // Called when all tiles marked as required for activation are ready to draw. 43 // Called when all tiles marked as required for activation are ready to draw.
44 virtual void NotifyReadyToActivate() = 0; 44 virtual void NotifyReadyToActivate() = 0;
45 45
46 // Called when all tiles marked as required for draw are ready to draw. 46 // Called when all tiles marked as required for draw are ready to draw.
47 virtual void NotifyReadyToDraw() = 0; 47 virtual void NotifyReadyToDraw() = 0;
48 48
49 // Called when all tile tasks started by the most recent call to PrepareTiles 49 // Called when all tile tasks started by the most recent call to PrepareTiles
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Synchronously finish any in progress work, cancel the rest, and clean up as 113 // Synchronously finish any in progress work, cancel the rest, and clean up as
114 // much resources as possible. Also, prevents any future work until a 114 // much resources as possible. Also, prevents any future work until a
115 // SetResources call. 115 // SetResources call.
116 void FinishTasksAndCleanUp(); 116 void FinishTasksAndCleanUp();
117 117
118 // Set the new given resource pool and tile task runner. Note that 118 // Set the new given resource pool and tile task runner. Note that
119 // FinishTasksAndCleanUp must be called in between consecutive calls to 119 // FinishTasksAndCleanUp must be called in between consecutive calls to
120 // SetResources. 120 // SetResources.
121 void SetResources(ResourcePool* resource_pool, 121 void SetResources(ResourcePool* resource_pool,
122 ImageDecodeController* image_decode_controller, 122 ImageDecodeCache* image_decode_cache,
123 TaskGraphRunner* task_graph_runner, 123 TaskGraphRunner* task_graph_runner,
124 RasterBufferProvider* raster_buffer_provider, 124 RasterBufferProvider* raster_buffer_provider,
125 size_t scheduled_raster_task_limit, 125 size_t scheduled_raster_task_limit,
126 bool use_gpu_rasterization); 126 bool use_gpu_rasterization);
127 127
128 // This causes any completed raster work to finalize, so that tiles get up to 128 // This causes any completed raster work to finalize, so that tiles get up to
129 // date draw information. 129 // date draw information.
130 void Flush(); 130 void Flush();
131 131
132 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, 132 ScopedTilePtr CreateTile(const Tile::CreateInfo& info,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 std::vector<scoped_refptr<TileTask>> locked_image_tasks_; 344 std::vector<scoped_refptr<TileTask>> locked_image_tasks_;
345 345
346 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 346 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
347 347
348 DISALLOW_COPY_AND_ASSIGN(TileManager); 348 DISALLOW_COPY_AND_ASSIGN(TileManager);
349 }; 349 };
350 350
351 } // namespace cc 351 } // namespace cc
352 352
353 #endif // CC_TILES_TILE_MANAGER_H_ 353 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/tiles/software_image_decode_controller_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698