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

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

Issue 1318733006: cc: Do the math for a tile's content rect in layer space once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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_TILES_TILE_MANAGER_H_ 5 #ifndef CC_TILES_TILE_MANAGER_H_
6 #define CC_TILES_TILE_MANAGER_H_ 6 #define CC_TILES_TILE_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // FinishTasksAndCleanUp must be called in between consecutive calls to 126 // FinishTasksAndCleanUp must be called in between consecutive calls to
127 // SetResources. 127 // SetResources.
128 void SetResources(ResourcePool* resource_pool, 128 void SetResources(ResourcePool* resource_pool,
129 TileTaskRunner* tile_task_runner, 129 TileTaskRunner* tile_task_runner,
130 size_t scheduled_raster_task_limit); 130 size_t scheduled_raster_task_limit);
131 131
132 // This causes any completed raster work to finalize, so that tiles get up to 132 // This causes any completed raster work to finalize, so that tiles get up to
133 // date draw information. 133 // date draw information.
134 void Flush(); 134 void Flush();
135 135
136 ScopedTilePtr CreateTile(const gfx::Size& desired_texture_size, 136 ScopedTilePtr CreateTile(const Tile::CreateInfo& info,
137 const gfx::Rect& content_rect,
138 float contents_scale,
139 int layer_id, 137 int layer_id,
140 int source_frame_number, 138 int source_frame_number,
141 int flags); 139 int flags);
142 140
143 bool IsReadyToActivate() const; 141 bool IsReadyToActivate() const;
144 bool IsReadyToDraw() const; 142 bool IsReadyToDraw() const;
145 143
146 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() 144 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
147 const; 145 const;
148 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; 146 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 bool has_scheduled_tile_tasks_; 327 bool has_scheduled_tile_tasks_;
330 328
331 uint64_t prepare_tiles_count_; 329 uint64_t prepare_tiles_count_;
332 330
333 DISALLOW_COPY_AND_ASSIGN(TileManager); 331 DISALLOW_COPY_AND_ASSIGN(TileManager);
334 }; 332 };
335 333
336 } // namespace cc 334 } // namespace cc
337 335
338 #endif // CC_TILES_TILE_MANAGER_H_ 336 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW
« cc/tiles/tile.cc ('K') | « cc/tiles/tile.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698