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

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

Issue 1130303004: cc: Remove unused Tile ctor parameter (raster_source). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
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 <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Assigns tile memory and schedules work to prepare tiles for drawing. 110 // Assigns tile memory and schedules work to prepare tiles for drawing.
111 // - Runs client_->NotifyReadyToActivate() when all tiles required for 111 // - Runs client_->NotifyReadyToActivate() when all tiles required for
112 // activation are prepared, or failed to prepare due to OOM. 112 // activation are prepared, or failed to prepare due to OOM.
113 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are 113 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are
114 // prepared, or failed to prepare due to OOM. 114 // prepared, or failed to prepare due to OOM.
115 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); 115 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state);
116 116
117 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state); 117 void UpdateVisibleTiles(const GlobalStateThatImpactsTilePriority& state);
118 118
119 ScopedTilePtr CreateTile(RasterSource* raster_source, 119 ScopedTilePtr CreateTile(const gfx::Size& desired_texture_size,
120 const gfx::Size& desired_texture_size,
121 const gfx::Rect& content_rect, 120 const gfx::Rect& content_rect,
122 float contents_scale, 121 float contents_scale,
123 int layer_id, 122 int layer_id,
124 int source_frame_number, 123 int source_frame_number,
125 int flags); 124 int flags);
126 125
127 bool IsReadyToActivate() const; 126 bool IsReadyToActivate() const;
128 bool IsReadyToDraw() const; 127 bool IsReadyToDraw() const;
129 128
130 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() 129 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 306
308 bool did_notify_ready_to_activate_; 307 bool did_notify_ready_to_activate_;
309 bool did_notify_ready_to_draw_; 308 bool did_notify_ready_to_draw_;
310 309
311 DISALLOW_COPY_AND_ASSIGN(TileManager); 310 DISALLOW_COPY_AND_ASSIGN(TileManager);
312 }; 311 };
313 312
314 } // namespace cc 313 } // namespace cc
315 314
316 #endif // CC_RESOURCES_TILE_MANAGER_H_ 315 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698