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

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: 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
« no previous file with comments | « no previous file | cc/resources/tile_manager.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
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_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (state != global_state_) { 124 if (state != global_state_) {
125 global_state_ = state; 125 global_state_ = state;
126 prioritized_tiles_dirty_ = true; 126 prioritized_tiles_dirty_ = true;
127 resource_pool_->SetResourceUsageLimits( 127 resource_pool_->SetResourceUsageLimits(
128 global_state_.soft_memory_limit_in_bytes, 128 global_state_.soft_memory_limit_in_bytes,
129 global_state_.unused_memory_limit_in_bytes, 129 global_state_.unused_memory_limit_in_bytes,
130 global_state_.num_resources_limit); 130 global_state_.num_resources_limit);
131 } 131 }
132 } 132 }
133 133
134 void ResetDamagedRect();
135
136 gfx::Rect GetDamagedRect();
137
134 protected: 138 protected:
135 TileManager(TileManagerClient* client, 139 TileManager(TileManagerClient* client,
136 base::SequencedTaskRunner* task_runner, 140 base::SequencedTaskRunner* task_runner,
137 ResourceProvider* resource_provider, 141 ResourceProvider* resource_provider,
138 ContextProvider* context_provider, 142 ContextProvider* context_provider,
139 scoped_ptr<RasterWorkerPool> raster_worker_pool, 143 scoped_ptr<RasterWorkerPool> raster_worker_pool,
140 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool, 144 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool,
141 size_t max_raster_usage_bytes, 145 size_t max_raster_usage_bytes,
142 RenderingStatsInstrumentation* rendering_stats_instrumentation, 146 RenderingStatsInstrumentation* rendering_stats_instrumentation,
143 bool use_rasterize_on_demand); 147 bool use_rasterize_on_demand);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::vector<Tile*> released_tiles_; 247 std::vector<Tile*> released_tiles_;
244 248
245 bool use_rasterize_on_demand_; 249 bool use_rasterize_on_demand_;
246 250
247 // Queues used when scheduling raster tasks. 251 // Queues used when scheduling raster tasks.
248 RasterTaskQueue raster_queue_[NUM_RASTER_WORKER_POOL_TYPES]; 252 RasterTaskQueue raster_queue_[NUM_RASTER_WORKER_POOL_TYPES];
249 253
250 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_; 254 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_;
251 255
252 std::vector<PictureLayerImpl*> layers_; 256 std::vector<PictureLayerImpl*> layers_;
257 gfx::Rect damage_rect_;
253 258
254 DISALLOW_COPY_AND_ASSIGN(TileManager); 259 DISALLOW_COPY_AND_ASSIGN(TileManager);
255 }; 260 };
256 261
257 } // namespace cc 262 } // namespace cc
258 263
259 #endif // CC_RESOURCES_TILE_MANAGER_H_ 264 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/tile_manager.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698