| 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 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 ReleaseTileResources() override; | 51 void ReleaseTileResources() override; |
| 52 void RecreateTileResources() override; | 52 void RecreateTileResources() override; |
| 53 Region GetInvalidationRegionForDebugging() override; | 53 Region GetInvalidationRegionForDebugging() override; |
| 54 | 54 |
| 55 // PictureLayerTilingClient overrides. | 55 // PictureLayerTilingClient overrides. |
| 56 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; | 56 std::unique_ptr<Tile> CreateTile(const Tile::CreateInfo& info) override; |
| 57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
| 58 const Region* GetPendingInvalidation() override; | 58 const Region* GetPendingInvalidation() override; |
| 59 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 59 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 60 const PictureLayerTiling* tiling) const override; | 60 const PictureLayerTiling* tiling) const override; |
| 61 bool HasValidTilePriorities() const override; | 61 bool HasValidTilePriorities() const override; |
| 62 bool RequiresHighResToDraw() const override; | 62 bool RequiresHighResToDraw() const override; |
| 63 gfx::Rect GetEnclosingRectInTargetSpace() const override; | 63 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
| 64 | 64 |
| 65 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { | 65 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { |
| 66 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; | 66 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // of comparing pointers, since objects pointed to are not guaranteed to | 160 // of comparing pointers, since objects pointed to are not guaranteed to |
| 161 // exist. | 161 // exist. |
| 162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace cc | 167 } // namespace cc |
| 168 | 168 |
| 169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |