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

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

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void UpdateTiles(const Occlusion& occlusion_in_content_space, 58 void UpdateTiles(const Occlusion& occlusion_in_content_space,
59 bool resourceless_software_draw) override; 59 bool resourceless_software_draw) override;
60 void NotifyTileStateChanged(const Tile* tile) override; 60 void NotifyTileStateChanged(const Tile* tile) override;
61 void DidBecomeActive() override; 61 void DidBecomeActive() override;
62 void DidBeginTracing() override; 62 void DidBeginTracing() override;
63 void ReleaseResources() override; 63 void ReleaseResources() override;
64 skia::RefPtr<SkPicture> GetPicture() override; 64 skia::RefPtr<SkPicture> GetPicture() override;
65 65
66 // PictureLayerTilingClient overrides. 66 // PictureLayerTilingClient overrides.
67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, 67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling,
68 const gfx::Rect& content_rect) override; 68 const gfx::Rect& content_rect,
69 int flags) override;
69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 70 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
70 const Region* GetPendingInvalidation() override; 71 const Region* GetPendingInvalidation() override;
71 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 72 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
72 const PictureLayerTiling* tiling) const override; 73 const PictureLayerTiling* tiling) const override;
73 PictureLayerTiling* GetRecycledTwinTiling( 74 PictureLayerTiling* GetRecycledTwinTiling(
74 const PictureLayerTiling* tiling) override; 75 const PictureLayerTiling* tiling) override;
75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; 76 TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
76 size_t GetMaxTilesForInterestArea() const override; 77 size_t GetMaxTilesForInterestArea() const override;
77 float GetSkewportTargetTimeInSeconds() const override; 78 float GetSkewportTargetTimeInSeconds() const override;
78 int GetSkewportExtrapolationLimitInContentPixels() const override; 79 int GetSkewportExtrapolationLimitInContentPixels() const override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // frame that has a valid viewport for prioritizing tiles. 182 // frame that has a valid viewport for prioritizing tiles.
182 gfx::Rect visible_rect_for_tile_priority_; 183 gfx::Rect visible_rect_for_tile_priority_;
183 184
184 friend class PictureLayer; 185 friend class PictureLayer;
185 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 186 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
186 }; 187 };
187 188
188 } // namespace cc 189 } // namespace cc
189 190
190 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 191 #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