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

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

Issue 1051993002: cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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 <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Assigns tile memory and schedules work to prepare tiles for drawing. 112 // Assigns tile memory and schedules work to prepare tiles for drawing.
113 // - Runs client_->NotifyReadyToActivate() when all tiles required for 113 // - Runs client_->NotifyReadyToActivate() when all tiles required for
114 // activation are prepared, or failed to prepare due to OOM. 114 // activation are prepared, or failed to prepare due to OOM.
115 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are 115 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are
116 // prepared, or failed to prepare due to OOM. 116 // prepared, or failed to prepare due to OOM.
117 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); 117 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state);
118 118
119 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state); 119 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state);
120 120
121 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, 121 scoped_refptr<Tile> CreateTile(scoped_refptr<RasterSource>* raster_source,
122 const gfx::Size& desired_texture_size, 122 const gfx::Size& desired_texture_size,
123 const gfx::Rect& content_rect, 123 const gfx::Rect& content_rect,
124 float contents_scale, 124 float contents_scale,
125 int layer_id, 125 int layer_id,
126 int source_frame_number, 126 int source_frame_number,
127 int flags); 127 int flags);
128 128
129 bool IsReadyToActivate() const; 129 bool IsReadyToActivate() const;
130 bool IsReadyToDraw() const; 130 bool IsReadyToDraw() const;
131 131
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 bool did_notify_ready_to_activate_; 308 bool did_notify_ready_to_activate_;
309 bool did_notify_ready_to_draw_; 309 bool did_notify_ready_to_draw_;
310 310
311 DISALLOW_COPY_AND_ASSIGN(TileManager); 311 DISALLOW_COPY_AND_ASSIGN(TileManager);
312 }; 312 };
313 313
314 } // namespace cc 314 } // namespace cc
315 315
316 #endif // CC_RESOURCES_TILE_MANAGER_H_ 316 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698