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

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

Issue 493543002: cc: Report only on active tiles in tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/picture_layer_tiling.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const gfx::Rect& content_rect, 105 const gfx::Rect& content_rect,
106 const gfx::Rect& opaque_rect, 106 const gfx::Rect& opaque_rect,
107 float contents_scale, 107 float contents_scale,
108 int layer_id, 108 int layer_id,
109 int source_frame_number, 109 int source_frame_number,
110 int flags); 110 int flags);
111 111
112 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() 112 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue()
113 const; 113 const;
114 void BasicStateAsValueInto(base::debug::TracedValue* dict) const; 114 void BasicStateAsValueInto(base::debug::TracedValue* dict) const;
115 void AllTilesAsValueInto(base::debug::TracedValue* array) const;
116 const MemoryHistory::Entry& memory_stats_from_last_assign() const { 115 const MemoryHistory::Entry& memory_stats_from_last_assign() const {
117 return memory_stats_from_last_assign_; 116 return memory_stats_from_last_assign_;
118 } 117 }
119 118
120 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { 119 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) {
121 for (size_t i = 0; i < tiles.size(); ++i) { 120 for (size_t i = 0; i < tiles.size(); ++i) {
122 ManagedTileState& mts = tiles[i]->managed_state(); 121 ManagedTileState& mts = tiles[i]->managed_state();
123 ManagedTileState::TileVersion& tile_version = 122 ManagedTileState::TileVersion& tile_version =
124 mts.tile_versions[HIGH_QUALITY_RASTER_MODE]; 123 mts.tile_versions[HIGH_QUALITY_RASTER_MODE];
125 124
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; 263 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_;
265 264
266 UniqueNotifier ready_to_activate_check_notifier_; 265 UniqueNotifier ready_to_activate_check_notifier_;
267 266
268 DISALLOW_COPY_AND_ASSIGN(TileManager); 267 DISALLOW_COPY_AND_ASSIGN(TileManager);
269 }; 268 };
270 269
271 } // namespace cc 270 } // namespace cc
272 271
273 #endif // CC_RESOURCES_TILE_MANAGER_H_ 272 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698