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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Remove TODOs Created 7 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
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_RESOURCES_TILE_MANAGER_H_ 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_
6 #define CC_RESOURCES_TILE_MANAGER_H_ 6 #define CC_RESOURCES_TILE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // should no longer have any memory assigned to them. Tile objects are "owned" 59 // should no longer have any memory assigned to them. Tile objects are "owned"
60 // by layers; they automatically register with the manager when they are 60 // by layers; they automatically register with the manager when they are
61 // created, and unregister from the manager when they are deleted. 61 // created, and unregister from the manager when they are deleted.
62 class CC_EXPORT TileManager : public WorkerPoolClient { 62 class CC_EXPORT TileManager : public WorkerPoolClient {
63 public: 63 public:
64 TileManager(TileManagerClient* client, 64 TileManager(TileManagerClient* client,
65 ResourceProvider *resource_provider, 65 ResourceProvider *resource_provider,
66 size_t num_raster_threads, 66 size_t num_raster_threads,
67 bool use_color_estimator, 67 bool use_color_estimator,
68 bool prediction_benchmarking, 68 bool prediction_benchmarking,
69 RenderingStatsInstrumentation* rendering_stats_instrumentation); 69 RenderingStatsInstrumentation* rendering_stats_instrumentation,
70 bool use_gpu_memory_buffers);
reveman 2013/05/22 18:56:41 why not use_map_image here as well?
kaanb 2013/05/22 19:13:03 Done.
70 virtual ~TileManager(); 71 virtual ~TileManager();
71 72
72 const GlobalStateThatImpactsTilePriority& GlobalState() const { 73 const GlobalStateThatImpactsTilePriority& GlobalState() const {
73 return global_state_; 74 return global_state_;
74 } 75 }
75 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); 76 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state);
76 77
77 void ManageTiles(); 78 void ManageTiles();
78 void CheckForCompletedTileUploads(); 79 void CheckForCompletedTileUploads();
79 void AbortPendingTileUploads(); 80 void AbortPendingTileUploads();
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 210
210 size_t pending_tasks_; 211 size_t pending_tasks_;
211 size_t max_pending_tasks_; 212 size_t max_pending_tasks_;
212 213
213 DISALLOW_COPY_AND_ASSIGN(TileManager); 214 DISALLOW_COPY_AND_ASSIGN(TileManager);
214 }; 215 };
215 216
216 } // namespace cc 217 } // namespace cc
217 218
218 #endif // CC_RESOURCES_TILE_MANAGER_H_ 219 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698