OLD | NEW |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, | 70 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, |
71 Region* new_invalidation, | 71 Region* new_invalidation, |
72 const PictureLayerTilingSet* pending_set); | 72 const PictureLayerTilingSet* pending_set); |
73 bool UpdateTiles(); | 73 bool UpdateTiles(); |
74 void UpdateCanUseLCDTextAfterCommit(); | 74 void UpdateCanUseLCDTextAfterCommit(); |
75 bool RasterSourceUsesLCDText() const; | 75 bool RasterSourceUsesLCDText() const; |
76 WhichTree GetTree() const; | 76 WhichTree GetTree() const; |
77 | 77 |
78 // Mask-related functions. | 78 // Mask-related functions. |
79 void GetContentsResourceId(ResourceId* resource_id, | 79 void GetContentsResourceId(ResourceId* resource_id, |
80 gfx::Size* resource_size) const override; | 80 gfx::Size* resource_size, |
| 81 gfx::SizeF* resource_uv_size) const override; |
81 | 82 |
82 void SetNearestNeighbor(bool nearest_neighbor); | 83 void SetNearestNeighbor(bool nearest_neighbor); |
83 | 84 |
84 void SetUseTransformedRasterization(bool use); | 85 void SetUseTransformedRasterization(bool use); |
85 | 86 |
86 size_t GPUMemoryUsageInBytes() const override; | 87 size_t GPUMemoryUsageInBytes() const override; |
87 | 88 |
88 void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override; | 89 void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override; |
89 | 90 |
90 bool CanHaveTilings() const; | 91 bool CanHaveTilings() const; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // of comparing pointers, since objects pointed to are not guaranteed to | 170 // of comparing pointers, since objects pointed to are not guaranteed to |
170 // exist. | 171 // exist. |
171 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 172 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
172 | 173 |
173 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 174 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
174 }; | 175 }; |
175 | 176 |
176 } // namespace cc | 177 } // namespace cc |
177 | 178 |
178 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 179 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |