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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 12954006: Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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_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 "cc/base/scoped_ptr_vector.h" 8 #include "cc/base/scoped_ptr_vector.h"
9 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
10 #include "cc/resources/picture_layer_tiling.h" 10 #include "cc/resources/picture_layer_tiling.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual bool AreVisibleResourcesReady() const OVERRIDE; 68 virtual bool AreVisibleResourcesReady() const OVERRIDE;
69 69
70 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 70 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
71 71
72 protected: 72 protected:
73 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); 73 PictureLayerImpl(LayerTreeImpl* tree_impl, int id);
74 PictureLayerTiling* AddTiling(float contents_scale); 74 PictureLayerTiling* AddTiling(float contents_scale);
75 void RemoveTiling(float contents_scale); 75 void RemoveTiling(float contents_scale);
76 void SyncFromActiveLayer(const PictureLayerImpl* other); 76 void SyncFromActiveLayer(const PictureLayerImpl* other);
77 void ManageTilings(bool animating_transform_to_screen); 77 void ManageTilings(bool animating_transform_to_screen);
78 virtual void CalculateRasterContentsScale( 78 virtual bool ShouldAdjustRasterSourceScale() const;
79 bool animating_transform_to_screen, 79 virtual void CalculateRasterContentsScale(bool animating_transform_to_screen);
80 float* raster_contents_scale,
81 float* low_res_raster_contents_scale);
82 void CleanUpTilingsOnActiveLayer( 80 void CleanUpTilingsOnActiveLayer(
83 std::vector<PictureLayerTiling*> used_tilings); 81 std::vector<PictureLayerTiling*> used_tilings);
84 PictureLayerImpl* PendingTwin() const; 82 PictureLayerImpl* PendingTwin() const;
85 PictureLayerImpl* ActiveTwin() const; 83 PictureLayerImpl* ActiveTwin() const;
86 float MinimumContentsScale() const; 84 float MinimumContentsScale() const;
87 85
88 virtual void GetDebugBorderProperties( 86 virtual void GetDebugBorderProperties(
89 SkColor* color, float* width) const OVERRIDE; 87 SkColor* color, float* width) const OVERRIDE;
90 88
91 scoped_ptr<PictureLayerTilingSet> tilings_; 89 scoped_ptr<PictureLayerTilingSet> tilings_;
92 scoped_refptr<PicturePileImpl> pile_; 90 scoped_refptr<PicturePileImpl> pile_;
93 Region invalidation_; 91 Region invalidation_;
94 92
95 gfx::Transform last_screen_space_transform_; 93 gfx::Transform last_screen_space_transform_;
96 gfx::Size last_bounds_; 94 gfx::Size last_bounds_;
97 float last_content_scale_; 95 float last_content_scale_;
98 float ideal_contents_scale_; 96 float ideal_contents_scale_;
99 bool is_mask_; 97 bool is_mask_;
100 98
101 float ideal_page_scale_; 99 float ideal_page_scale_;
102 float ideal_device_scale_; 100 float ideal_device_scale_;
103 float ideal_source_scale_;
104 101
105 float raster_page_scale_; 102 float raster_page_scale_;
106 float raster_device_scale_; 103 float raster_device_scale_;
107 float raster_source_scale_; 104 float raster_contents_scale_;
105 float low_res_raster_contents_scale_;
108 bool raster_source_scale_was_animating_; 106 bool raster_source_scale_was_animating_;
109 107
110 friend class PictureLayer; 108 friend class PictureLayer;
111 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 109 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
112 }; 110 };
113 111
114 } 112 }
115 113
116 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 114 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698