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

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

Issue 2565643002: [5/5] Add translated rasterization for PictureLayerImpl (Closed)
Patch Set: forgot to update cc_perftests too Created 3 years, 7 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
« no previous file with comments | « no previous file | 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void set_is_directly_composited_image(bool is_directly_composited_image) { 102 void set_is_directly_composited_image(bool is_directly_composited_image) {
103 is_directly_composited_image_ = is_directly_composited_image; 103 is_directly_composited_image_ = is_directly_composited_image;
104 } 104 }
105 105
106 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); 106 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate);
107 107
108 protected: 108 protected:
109 PictureLayerImpl(LayerTreeImpl* tree_impl, 109 PictureLayerImpl(LayerTreeImpl* tree_impl,
110 int id, 110 int id,
111 Layer::LayerMaskType mask_type); 111 Layer::LayerMaskType mask_type);
112 PictureLayerTiling* AddTiling(float contents_scale); 112 PictureLayerTiling* AddTiling(const gfx::AxisTransform2d& contents_transform);
113 void RemoveAllTilings(); 113 void RemoveAllTilings();
114 void AddTilingsForRasterScale(); 114 void AddTilingsForRasterScale();
115 void AddLowResolutionTilingIfNeeded(); 115 void AddLowResolutionTilingIfNeeded();
116 bool ShouldAdjustRasterScale() const; 116 bool ShouldAdjustRasterScale() const;
117 void RecalculateRasterScales(); 117 void RecalculateRasterScales();
118 gfx::Vector2dF CalculateRasterTranslation(float raster_scale);
118 void CleanUpTilingsOnActiveLayer( 119 void CleanUpTilingsOnActiveLayer(
119 const std::vector<PictureLayerTiling*>& used_tilings); 120 const std::vector<PictureLayerTiling*>& used_tilings);
120 float MinimumContentsScale() const; 121 float MinimumContentsScale() const;
121 float MaximumContentsScale() const; 122 float MaximumContentsScale() const;
122 void UpdateViewportRectForTilePriorityInContentSpace(); 123 void UpdateViewportRectForTilePriorityInContentSpace();
123 PictureLayerImpl* GetRecycledTwinLayer() const; 124 PictureLayerImpl* GetRecycledTwinLayer() const;
124 125
125 void SanityCheckTilingState() const; 126 void SanityCheckTilingState() const;
126 127
127 void GetDebugBorderProperties(SkColor* color, float* width) const override; 128 void GetDebugBorderProperties(SkColor* color, float* width) const override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // of comparing pointers, since objects pointed to are not guaranteed to 171 // of comparing pointers, since objects pointed to are not guaranteed to
171 // exist. 172 // exist.
172 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 173 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 175 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
175 }; 176 };
176 177
177 } // namespace cc 178 } // namespace cc
178 179
179 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 180 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698