| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void AppendQuads(RenderPass* render_pass, | 48 void AppendQuads(RenderPass* render_pass, |
| 49 AppendQuadsData* append_quads_data) override; | 49 AppendQuadsData* append_quads_data) override; |
| 50 void NotifyTileStateChanged(const Tile* tile) override; | 50 void NotifyTileStateChanged(const Tile* tile) override; |
| 51 void DidBeginTracing() override; | 51 void DidBeginTracing() override; |
| 52 void ReleaseResources() override; | 52 void ReleaseResources() override; |
| 53 void RecreateResources() override; | 53 void RecreateResources() override; |
| 54 skia::RefPtr<SkPicture> GetPicture() override; | 54 skia::RefPtr<SkPicture> GetPicture() override; |
| 55 Region GetInvalidationRegion() override; | 55 Region GetInvalidationRegion() override; |
| 56 | 56 |
| 57 // PictureLayerTilingClient overrides. | 57 // PictureLayerTilingClient overrides. |
| 58 ScopedTilePtr CreateTile(float contents_scale, | 58 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; |
| 59 const gfx::Rect& content_rect) override; | |
| 60 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 59 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
| 61 const Region* GetPendingInvalidation() override; | 60 const Region* GetPendingInvalidation() override; |
| 62 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 61 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 63 const PictureLayerTiling* tiling) const override; | 62 const PictureLayerTiling* tiling) const override; |
| 64 bool HasValidTilePriorities() const override; | 63 bool HasValidTilePriorities() const override; |
| 65 bool RequiresHighResToDraw() const override; | 64 bool RequiresHighResToDraw() const override; |
| 66 gfx::Rect GetEnclosingRectInTargetSpace() const override; | 65 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
| 67 | 66 |
| 68 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { | 67 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { |
| 69 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; | 68 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // of comparing pointers, since objects pointed to are not guaranteed to | 171 // of comparing pointers, since objects pointed to are not guaranteed to |
| 173 // exist. | 172 // exist. |
| 174 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 173 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 175 | 174 |
| 176 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 175 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 177 }; | 176 }; |
| 178 | 177 |
| 179 } // namespace cc | 178 } // namespace cc |
| 180 | 179 |
| 181 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 180 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |