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

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

Issue 219963005: cc: Add support for partial swaps when using impl-side painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP - move damage tracking to DamageTracker Created 6 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 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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 if (state != global_state_) { 169 if (state != global_state_) {
170 global_state_ = state; 170 global_state_ = state;
171 prioritized_tiles_dirty_ = true; 171 prioritized_tiles_dirty_ = true;
172 resource_pool_->SetResourceUsageLimits( 172 resource_pool_->SetResourceUsageLimits(
173 global_state_.soft_memory_limit_in_bytes, 173 global_state_.soft_memory_limit_in_bytes,
174 global_state_.unused_memory_limit_in_bytes, 174 global_state_.unused_memory_limit_in_bytes,
175 global_state_.num_resources_limit); 175 global_state_.num_resources_limit);
176 } 176 }
177 } 177 }
178 178
179 void ResetTileRectLayerMap();
180
181 std::map<int, gfx::Rect> GetTileRectLayerMap();
182
179 protected: 183 protected:
180 TileManager(TileManagerClient* client, 184 TileManager(TileManagerClient* client,
181 base::SequencedTaskRunner* task_runner, 185 base::SequencedTaskRunner* task_runner,
182 ResourceProvider* resource_provider, 186 ResourceProvider* resource_provider,
183 ContextProvider* context_provider, 187 ContextProvider* context_provider,
184 scoped_ptr<RasterWorkerPool> raster_worker_pool, 188 scoped_ptr<RasterWorkerPool> raster_worker_pool,
185 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool, 189 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool,
186 size_t max_raster_usage_bytes, 190 size_t max_raster_usage_bytes,
187 RenderingStatsInstrumentation* rendering_stats_instrumentation, 191 RenderingStatsInstrumentation* rendering_stats_instrumentation,
188 bool use_rasterize_on_demand); 192 bool use_rasterize_on_demand);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 std::vector<Tile*> released_tiles_; 292 std::vector<Tile*> released_tiles_;
289 293
290 bool use_rasterize_on_demand_; 294 bool use_rasterize_on_demand_;
291 295
292 // Queues used when scheduling raster tasks. 296 // Queues used when scheduling raster tasks.
293 RasterTaskQueue raster_queue_[NUM_RASTER_WORKER_POOL_TYPES]; 297 RasterTaskQueue raster_queue_[NUM_RASTER_WORKER_POOL_TYPES];
294 298
295 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_; 299 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_;
296 300
297 std::vector<PictureLayerImpl*> layers_; 301 std::vector<PictureLayerImpl*> layers_;
302 gfx::Rect damage_rect_;
reveman 2014/04/11 18:11:34 unused
sohanjg 2014/04/14 10:16:11 Done.
303
304 std::map<int, gfx::Rect> tilemap_;
298 305
299 DISALLOW_COPY_AND_ASSIGN(TileManager); 306 DISALLOW_COPY_AND_ASSIGN(TileManager);
300 }; 307 };
301 308
302 } // namespace cc 309 } // namespace cc
303 310
304 #endif // CC_RESOURCES_TILE_MANAGER_H_ 311 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698