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 scoped_refptr<Tile> CreateTile(float contents_scale, |
59 const gfx::Rect& content_rect) override; | 59 const gfx::Rect& content_rect) 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 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; | 64 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
65 bool RequiresHighResToDraw() const override; | 65 bool RequiresHighResToDraw() const override; |
66 gfx::Rect GetEnclosingRectInTargetSpace() const override; | 66 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
67 | 67 |
68 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { | 68 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; | 69 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // of comparing pointers, since objects pointed to are not guaranteed to | 173 // of comparing pointers, since objects pointed to are not guaranteed to |
174 // exist. | 174 // exist. |
175 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 175 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 177 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace cc | 180 } // namespace cc |
181 | 181 |
182 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 182 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |