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

Side by Side Diff: cc/picture_layer_impl.h

Issue 11414238: implement the logic to set tile priorities based on current matrix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years 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 20 matching lines...) Expand all
31 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; 31 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
32 virtual void didUpdateTransforms() OVERRIDE; 32 virtual void didUpdateTransforms() OVERRIDE;
33 33
34 // PictureLayerTilingClient overrides. 34 // PictureLayerTilingClient overrides.
35 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, 35 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*,
36 gfx::Rect) OVERRIDE; 36 gfx::Rect) OVERRIDE;
37 37
38 // PushPropertiesTo active tree => pending tree 38 // PushPropertiesTo active tree => pending tree
39 void SyncFromActiveLayer(const PictureLayerImpl* other); 39 void SyncFromActiveLayer(const PictureLayerImpl* other);
40 40
41 void setBounds(const gfx::Size&);
enne (OOO) 2012/12/04 01:13:27 These three functions shadow the LayerImpl impleme
qinmin 2012/12/04 01:39:53 These functions are to check whether bounds/scale
42 void setContentBounds(const gfx::Size&);
43 void setContentsScale(float contentsScaleX, float contentsScaleY);
41 protected: 44 protected:
42 PictureLayerImpl(int id); 45 PictureLayerImpl(int id);
43 46
44 PictureLayerTilingSet tilings_; 47 PictureLayerTilingSet tilings_;
45 PicturePile pile_; 48 PicturePile pile_;
46 49
50 gfx::Transform last_screen_space_transform_;
51 double last_update_time_;
52
47 friend class PictureLayer; 53 friend class PictureLayer;
48 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 54 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
49 }; 55 };
50 56
51 } 57 }
52 58
53 #endif // CC_PICTURE_LAYER_IMPL_H_ 59 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/picture_layer_impl.cc » ('j') | cc/picture_layer_tiling.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698