Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 1127253002: Revert "cc: Remove Tile refcounting and RefCountedManaged." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698