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