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 21 matching lines...) Expand all Loading... |
32 NON_EXPORTED_BASE(public PictureLayerTilingClient) { | 32 NON_EXPORTED_BASE(public PictureLayerTilingClient) { |
33 public: | 33 public: |
34 static std::unique_ptr<PictureLayerImpl> | 34 static std::unique_ptr<PictureLayerImpl> |
35 Create(LayerTreeImpl* tree_impl, int id, Layer::LayerMaskType mask_type) { | 35 Create(LayerTreeImpl* tree_impl, int id, Layer::LayerMaskType mask_type) { |
36 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, mask_type)); | 36 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, mask_type)); |
37 } | 37 } |
38 ~PictureLayerImpl() override; | 38 ~PictureLayerImpl() override; |
39 | 39 |
40 Layer::LayerMaskType mask_type() const { return mask_type_; } | 40 Layer::LayerMaskType mask_type() const { return mask_type_; } |
41 | 41 |
| 42 void ResetRasterScale(); |
| 43 |
42 // LayerImpl overrides. | 44 // LayerImpl overrides. |
43 const char* LayerTypeAsString() const override; | 45 const char* LayerTypeAsString() const override; |
44 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 46 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
45 void PushPropertiesTo(LayerImpl* layer) override; | 47 void PushPropertiesTo(LayerImpl* layer) override; |
46 void AppendQuads(RenderPass* render_pass, | 48 void AppendQuads(RenderPass* render_pass, |
47 AppendQuadsData* append_quads_data) override; | 49 AppendQuadsData* append_quads_data) override; |
48 void NotifyTileStateChanged(const Tile* tile) override; | 50 void NotifyTileStateChanged(const Tile* tile) override; |
49 void ResetRasterScale(); | 51 SimpleEnclosedRegion VisibleOpaqueRegion() const override; |
| 52 |
50 void DidBeginTracing() override; | 53 void DidBeginTracing() override; |
51 void ReleaseResources() override; | 54 void ReleaseResources() override; |
52 void ReleaseTileResources() override; | 55 void ReleaseTileResources() override; |
53 void RecreateTileResources() override; | 56 void RecreateTileResources() override; |
54 Region GetInvalidationRegionForDebugging() override; | 57 Region GetInvalidationRegionForDebugging() override; |
55 | 58 |
56 // PictureLayerTilingClient overrides. | 59 // PictureLayerTilingClient overrides. |
57 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info) override; | 60 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info) override; |
58 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 61 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
59 const Region* GetPendingInvalidation() override; | 62 const Region* GetPendingInvalidation() override; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // of comparing pointers, since objects pointed to are not guaranteed to | 171 // of comparing pointers, since objects pointed to are not guaranteed to |
169 // exist. | 172 // exist. |
170 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 173 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
171 | 174 |
172 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 175 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
173 }; | 176 }; |
174 | 177 |
175 } // namespace cc | 178 } // namespace cc |
176 | 179 |
177 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 180 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |