| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const char* LayerTypeAsString() const override; | 46 const char* LayerTypeAsString() const override; |
| 47 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 47 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
| 48 void PushPropertiesTo(LayerImpl* layer) override; | 48 void PushPropertiesTo(LayerImpl* layer) override; |
| 49 void AppendQuads(RenderPass* render_pass, | 49 void AppendQuads(RenderPass* render_pass, |
| 50 AppendQuadsData* append_quads_data) override; | 50 AppendQuadsData* append_quads_data) override; |
| 51 void NotifyTileStateChanged(const Tile* tile) override; | 51 void NotifyTileStateChanged(const Tile* tile) override; |
| 52 void DidBeginTracing() override; | 52 void DidBeginTracing() override; |
| 53 void ReleaseResources() override; | 53 void ReleaseResources() override; |
| 54 void RecreateResources() override; | 54 void RecreateResources() override; |
| 55 skia::RefPtr<SkPicture> GetPicture() override; | 55 skia::RefPtr<SkPicture> GetPicture() override; |
| 56 Region GetInvalidationRegion() override; | 56 Region GetInvalidationRegionForDebugging() override; |
| 57 | 57 |
| 58 // PictureLayerTilingClient overrides. | 58 // PictureLayerTilingClient overrides. |
| 59 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; | 59 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; |
| 60 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 60 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
| 61 const Region* GetPendingInvalidation() override; | 61 const Region* GetPendingInvalidation() override; |
| 62 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 62 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 63 const PictureLayerTiling* tiling) const override; | 63 const PictureLayerTiling* tiling) const override; |
| 64 bool HasValidTilePriorities() const override; | 64 bool HasValidTilePriorities() const override; |
| 65 bool RequiresHighResToDraw() const override; | 65 bool RequiresHighResToDraw() const override; |
| 66 gfx::Rect GetEnclosingRectInTargetSpace() const override; | 66 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // of comparing pointers, since objects pointed to are not guaranteed to | 168 // of comparing pointers, since objects pointed to are not guaranteed to |
| 169 // exist. | 169 // exist. |
| 170 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 170 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 171 | 171 |
| 172 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 172 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace cc | 175 } // namespace cc |
| 176 | 176 |
| 177 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 177 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |