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

Side by Side Diff: cc/picture_layer_impl.h

Issue 11704002: cc: Generate tilings at other scales for impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // PushPropertiesTo active tree => pending tree 43 // PushPropertiesTo active tree => pending tree
44 void SyncFromActiveLayer(); 44 void SyncFromActiveLayer();
45 void SyncTiling(const PictureLayerTiling* tiling); 45 void SyncTiling(const PictureLayerTiling* tiling);
46 46
47 // Mask-related functions 47 // Mask-related functions
48 void SetIsMask(bool is_mask); 48 void SetIsMask(bool is_mask);
49 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; 49 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
50 50
51 protected: 51 protected:
52 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); 52 PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
53 void AddTiling(float contents_scale, gfx::Size tile_size); 53 PictureLayerTiling* AddTiling(float contents_scale);
54 void SyncFromActiveLayer(const PictureLayerImpl* other); 54 void SyncFromActiveLayer(const PictureLayerImpl* other);
55 gfx::Size TileSize() const; 55 gfx::Size TileSize() const;
56 void ManageTilings(float ideal_contents_scale); 56 void ManageTilings(float ideal_contents_scale);
57 void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings);
57 58
58 PictureLayerTilingSet tilings_; 59 PictureLayerTilingSet tilings_;
59 scoped_refptr<PicturePileImpl> pile_; 60 scoped_refptr<PicturePileImpl> pile_;
60 Region invalidation_; 61 Region invalidation_;
61 62
62 gfx::Transform last_screen_space_transform_; 63 gfx::Transform last_screen_space_transform_;
63 double last_update_time_; 64 double last_update_time_;
64 gfx::Size last_bounds_; 65 gfx::Size last_bounds_;
65 gfx::Size last_content_bounds_; 66 gfx::Size last_content_bounds_;
66 float last_content_scale_x_; 67 float last_content_scale_;
67 float last_content_scale_y_; 68 float ideal_contents_scale_;
68 bool is_mask_; 69 bool is_mask_;
69 70
70 friend class PictureLayer; 71 friend class PictureLayer;
71 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 72 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
72 }; 73 };
73 74
74 } 75 }
75 76
76 #endif // CC_PICTURE_LAYER_IMPL_H_ 77 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/picture_layer_impl.cc » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698