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