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

Side by Side Diff: cc/layers/picture_layer_impl.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/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl.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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <set>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
12 #include "cc/base/scoped_ptr_vector.h" 13 #include "cc/base/scoped_ptr_vector.h"
13 #include "cc/layers/layer_impl.h" 14 #include "cc/layers/layer_impl.h"
14 #include "cc/resources/picture_layer_tiling.h" 15 #include "cc/resources/picture_layer_tiling.h"
15 #include "cc/resources/picture_layer_tiling_set.h" 16 #include "cc/resources/picture_layer_tiling_set.h"
16 #include "cc/resources/picture_pile_impl.h" 17 #include "cc/resources/picture_pile_impl.h"
17 #include "skia/ext/refptr.h" 18 #include "skia/ext/refptr.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void DoPostCommitInitialization(); 185 void DoPostCommitInitialization();
185 186
186 bool CanHaveTilings() const; 187 bool CanHaveTilings() const;
187 bool CanHaveTilingWithScale(float contents_scale) const; 188 bool CanHaveTilingWithScale(float contents_scale) const;
188 void SanityCheckTilingState() const; 189 void SanityCheckTilingState() const;
189 190
190 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; 191 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
191 192
192 virtual void GetDebugBorderProperties( 193 virtual void GetDebugBorderProperties(
193 SkColor* color, float* width) const OVERRIDE; 194 SkColor* color, float* width) const OVERRIDE;
195 virtual void GetAllTilesForTracing(
196 std::set<const Tile*>* tiles) const OVERRIDE;
194 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; 197 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE;
195 198
196 virtual void UpdateIdealScales(); 199 virtual void UpdateIdealScales();
197 float MaximumTilingContentsScale() const; 200 float MaximumTilingContentsScale() const;
198 201
199 PictureLayerImpl* twin_layer_; 202 PictureLayerImpl* twin_layer_;
200 203
201 scoped_ptr<PictureLayerTilingSet> tilings_; 204 scoped_ptr<PictureLayerTilingSet> tilings_;
202 scoped_refptr<PicturePileImpl> pile_; 205 scoped_refptr<PicturePileImpl> pile_;
203 Region invalidation_; 206 Region invalidation_;
(...skipping 24 matching lines...) Expand all
228 gfx::Rect viewport_rect_for_tile_priority_; 231 gfx::Rect viewport_rect_for_tile_priority_;
229 gfx::Transform screen_space_transform_for_tile_priority_; 232 gfx::Transform screen_space_transform_for_tile_priority_;
230 233
231 friend class PictureLayer; 234 friend class PictureLayer;
232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 235 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
233 }; 236 };
234 237
235 } // namespace cc 238 } // namespace cc
236 239
237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 240 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698