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

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

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 bool AreTilesRequiredForActivationReady() const { 79 bool AreTilesRequiredForActivationReady() const {
80 return all_tiles_required_for_activation_have_been_initialized_; 80 return all_tiles_required_for_activation_have_been_initialized_;
81 } 81 }
82 82
83 protected: 83 protected:
84 TileManager(TileManagerClient* client, 84 TileManager(TileManagerClient* client,
85 ResourceProvider* resource_provider, 85 ResourceProvider* resource_provider,
86 scoped_ptr<RasterWorkerPool> raster_worker_pool, 86 scoped_ptr<RasterWorkerPool> raster_worker_pool,
87 size_t num_raster_threads, 87 size_t num_raster_threads,
88 RenderingStatsInstrumentation* rendering_stats_instrumentation, 88 RenderingStatsInstrumentation* rendering_stats_instrumentation);
89 GLenum texture_format);
90 89
91 // Methods called by Tile 90 // Methods called by Tile
92 friend class Tile; 91 friend class Tile;
93 void RegisterTile(Tile* tile); 92 void RegisterTile(Tile* tile);
94 void UnregisterTile(Tile* tile); 93 void UnregisterTile(Tile* tile);
95 94
96 // Overriden from RasterWorkerPoolClient: 95 // Overriden from RasterWorkerPoolClient:
97 virtual bool ShouldForceTasksRequiredForActivationToComplete() const 96 virtual bool ShouldForceTasksRequiredForActivationToComplete() const
98 OVERRIDE; 97 OVERRIDE;
99 virtual void DidFinishRunningTasks() OVERRIDE; 98 virtual void DidFinishRunningTasks() OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool all_tiles_required_for_activation_have_memory_; 147 bool all_tiles_required_for_activation_have_memory_;
149 bool all_tiles_required_for_activation_have_been_initialized_; 148 bool all_tiles_required_for_activation_have_been_initialized_;
150 149
151 bool ever_exceeded_memory_budget_; 150 bool ever_exceeded_memory_budget_;
152 MemoryHistory::Entry memory_stats_from_last_assign_; 151 MemoryHistory::Entry memory_stats_from_last_assign_;
153 152
154 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 153 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
155 154
156 bool did_initialize_visible_tile_; 155 bool did_initialize_visible_tile_;
157 156
158 GLenum texture_format_;
159
160 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; 157 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap;
161 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 158 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
162 LayerPixelRefTaskMap image_decode_tasks_; 159 LayerPixelRefTaskMap image_decode_tasks_;
163 160
164 RasterTaskCompletionStats update_visible_tiles_stats_; 161 RasterTaskCompletionStats update_visible_tiles_stats_;
165 162
166 DISALLOW_COPY_AND_ASSIGN(TileManager); 163 DISALLOW_COPY_AND_ASSIGN(TileManager);
167 }; 164 };
168 165
169 } // namespace cc 166 } // namespace cc
170 167
171 #endif // CC_RESOURCES_TILE_MANAGER_H_ 168 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698