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

Side by Side Diff: cc/picture_layer_impl.h

Issue 12045086: cc: Throttle tile priority updates to once a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_PICTURE_LAYER_IMPL_H_
6 #define CC_PICTURE_LAYER_IMPL_H_ 6 #define CC_PICTURE_LAYER_IMPL_H_
7 7
8 #include "cc/layer_impl.h" 8 #include "cc/layer_impl.h"
9 #include "cc/picture_layer_tiling.h" 9 #include "cc/picture_layer_tiling.h"
10 #include "cc/picture_layer_tiling_set.h" 10 #include "cc/picture_layer_tiling_set.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 virtual ~PictureLayerImpl(); 28 virtual ~PictureLayerImpl();
29 29
30 // LayerImpl overrides. 30 // LayerImpl overrides.
31 virtual const char* layerTypeAsString() const OVERRIDE; 31 virtual const char* layerTypeAsString() const OVERRIDE;
32 virtual scoped_ptr<LayerImpl> createLayerImpl( 32 virtual scoped_ptr<LayerImpl> createLayerImpl(
33 LayerTreeImpl* treeImpl) OVERRIDE; 33 LayerTreeImpl* treeImpl) OVERRIDE;
34 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE; 34 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE;
35 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 35 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
36 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; 36 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
37 virtual void didUpdateTransforms() OVERRIDE; 37 virtual void updateTilePriorities() OVERRIDE;
38 virtual void didBecomeActive() OVERRIDE; 38 virtual void didBecomeActive() OVERRIDE;
39 virtual void didLoseOutputSurface() OVERRIDE; 39 virtual void didLoseOutputSurface() OVERRIDE;
40 virtual void calculateContentsScale( 40 virtual void calculateContentsScale(
41 float ideal_contents_scale, 41 float ideal_contents_scale,
42 float* contents_scale_x, 42 float* contents_scale_x,
43 float* contents_scale_y, 43 float* contents_scale_y,
44 gfx::Size* content_bounds) OVERRIDE; 44 gfx::Size* content_bounds) OVERRIDE;
45 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; 45 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE;
46 46
47 // PictureLayerTilingClient overrides. 47 // PictureLayerTilingClient overrides.
(...skipping 19 matching lines...) Expand all
67 PictureLayerTiling* AddTiling(float contents_scale); 67 PictureLayerTiling* AddTiling(float contents_scale);
68 void SyncFromActiveLayer(const PictureLayerImpl* other); 68 void SyncFromActiveLayer(const PictureLayerImpl* other);
69 gfx::Size TileSize() const; 69 gfx::Size TileSize() const;
70 void ManageTilings(float ideal_contents_scale); 70 void ManageTilings(float ideal_contents_scale);
71 void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings); 71 void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings);
72 72
73 scoped_ptr<PictureLayerTilingSet> tilings_; 73 scoped_ptr<PictureLayerTilingSet> tilings_;
74 scoped_refptr<PicturePileImpl> pile_; 74 scoped_refptr<PicturePileImpl> pile_;
75 Region invalidation_; 75 Region invalidation_;
76 76
77 int last_source_frame_number_;
78 int last_impl_frame_number_;
77 gfx::Transform last_screen_space_transform_; 79 gfx::Transform last_screen_space_transform_;
78 double last_update_time_; 80 double last_update_time_;
79 gfx::Size last_bounds_; 81 gfx::Size last_bounds_;
80 gfx::Size last_content_bounds_; 82 gfx::Size last_content_bounds_;
81 float last_content_scale_; 83 float last_content_scale_;
82 float ideal_contents_scale_; 84 float ideal_contents_scale_;
83 bool is_mask_; 85 bool is_mask_;
84 86
85 friend class PictureLayer; 87 friend class PictureLayer;
86 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 88 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
87 }; 89 };
88 90
89 } 91 }
90 92
91 #endif // CC_PICTURE_LAYER_IMPL_H_ 93 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture_layer.cc ('k') | cc/picture_layer_impl.cc » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698