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

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

Issue 493543002: cc: Report only on active tiles in tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
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_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_
7 7
8 #include <set>
8 #include <utility> 9 #include <utility>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "cc/base/cc_export.h" 15 #include "cc/base/cc_export.h"
15 #include "cc/base/region.h" 16 #include "cc/base/region.h"
16 #include "cc/base/tiling_data.h" 17 #include "cc/base/tiling_data.h"
17 #include "cc/resources/tile.h" 18 #include "cc/resources/tile.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // tiling is becoming recycled. This may include some tiles which are 253 // tiling is becoming recycled. This may include some tiles which are
253 // not in the the pending tiling (due to invalidations). This must 254 // not in the the pending tiling (due to invalidations). This must
254 // be called before DidBecomeActive, as it resets the active priority 255 // be called before DidBecomeActive, as it resets the active priority
255 // while DidBecomeActive promotes pending priority on a similar set of tiles. 256 // while DidBecomeActive promotes pending priority on a similar set of tiles.
256 void DidBecomeRecycled(); 257 void DidBecomeRecycled();
257 258
258 bool NeedsUpdateForFrameAtTime(double frame_time_in_seconds) { 259 bool NeedsUpdateForFrameAtTime(double frame_time_in_seconds) {
259 return frame_time_in_seconds != last_impl_frame_time_in_seconds_; 260 return frame_time_in_seconds != last_impl_frame_time_in_seconds_;
260 } 261 }
261 262
263 void AllTilesForTracingInto(std::set<const Tile*>* tiles) const;
262 void AsValueInto(base::debug::TracedValue* array) const; 264 void AsValueInto(base::debug::TracedValue* array) const;
263 size_t GPUMemoryUsageInBytes() const; 265 size_t GPUMemoryUsageInBytes() const;
264 266
265 struct RectExpansionCache { 267 struct RectExpansionCache {
266 RectExpansionCache(); 268 RectExpansionCache();
267 269
268 gfx::Rect previous_start; 270 gfx::Rect previous_start;
269 gfx::Rect previous_bounds; 271 gfx::Rect previous_bounds;
270 gfx::Rect previous_result; 272 gfx::Rect previous_result;
271 int64 previous_target; 273 int64 previous_target;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 356
355 private: 357 private:
356 DISALLOW_ASSIGN(PictureLayerTiling); 358 DISALLOW_ASSIGN(PictureLayerTiling);
357 359
358 RectExpansionCache expansion_cache_; 360 RectExpansionCache expansion_cache_;
359 }; 361 };
360 362
361 } // namespace cc 363 } // namespace cc
362 364
363 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 365 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698