| 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 30 matching lines...) Expand all Loading... |
| 41 // LayerImpl overrides. | 41 // LayerImpl overrides. |
| 42 const char* LayerTypeAsString() const override; | 42 const char* LayerTypeAsString() const override; |
| 43 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 43 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
| 44 void PushPropertiesTo(LayerImpl* layer) override; | 44 void PushPropertiesTo(LayerImpl* layer) override; |
| 45 void AppendQuads(RenderPass* render_pass, | 45 void AppendQuads(RenderPass* render_pass, |
| 46 AppendQuadsData* append_quads_data) override; | 46 AppendQuadsData* append_quads_data) override; |
| 47 void NotifyTileStateChanged(const Tile* tile) override; | 47 void NotifyTileStateChanged(const Tile* tile) override; |
| 48 void ResetRasterScale(); | 48 void ResetRasterScale(); |
| 49 void DidBeginTracing() override; | 49 void DidBeginTracing() override; |
| 50 void ReleaseResources() override; | 50 void ReleaseResources() override; |
| 51 void RecreateResources() override; | 51 void ReleaseTileResources() override; |
| 52 void RecreateTileResources() override; |
| 52 Region GetInvalidationRegionForDebugging() override; | 53 Region GetInvalidationRegionForDebugging() override; |
| 53 | 54 |
| 54 // PictureLayerTilingClient overrides. | 55 // PictureLayerTilingClient overrides. |
| 55 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; | 56 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; |
| 56 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
| 57 const Region* GetPendingInvalidation() override; | 58 const Region* GetPendingInvalidation() override; |
| 58 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 59 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 59 const PictureLayerTiling* tiling) const override; | 60 const PictureLayerTiling* tiling) const override; |
| 60 bool HasValidTilePriorities() const override; | 61 bool HasValidTilePriorities() const override; |
| 61 bool RequiresHighResToDraw() const override; | 62 bool RequiresHighResToDraw() const override; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // of comparing pointers, since objects pointed to are not guaranteed to | 160 // of comparing pointers, since objects pointed to are not guaranteed to |
| 160 // exist. | 161 // exist. |
| 161 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace cc | 167 } // namespace cc |
| 167 | 168 |
| 168 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |