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

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

Issue 874613003: cc: Stop pushing properties every activation for picture layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pli-pushprops: fixscrolling Created 5 years, 10 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const gfx::Rect& content_rect) override; 66 const gfx::Rect& content_rect) override;
67 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 67 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
68 const Region* GetPendingInvalidation() override; 68 const Region* GetPendingInvalidation() override;
69 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 69 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
70 const PictureLayerTiling* tiling) const override; 70 const PictureLayerTiling* tiling) const override;
71 PictureLayerTiling* GetRecycledTwinTiling( 71 PictureLayerTiling* GetRecycledTwinTiling(
72 const PictureLayerTiling* tiling) override; 72 const PictureLayerTiling* tiling) override;
73 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; 73 TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
74 WhichTree GetTree() const override; 74 WhichTree GetTree() const override;
75 bool RequiresHighResToDraw() const override; 75 bool RequiresHighResToDraw() const override;
76 void TilingLiveRectChanged() override;
76 77
77 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, 78 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source,
78 Region* new_invalidation, 79 Region* new_invalidation,
79 const PictureLayerTilingSet* pending_set); 80 const PictureLayerTilingSet* pending_set);
80 81
81 // Mask-related functions. 82 // Mask-related functions.
82 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 83 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
83 gfx::Size* resource_size) const override; 84 gfx::Size* resource_size) const override;
84 85
85 void SetNearestNeighbor(bool nearest_neighbor); 86 void SetNearestNeighbor(bool nearest_neighbor);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // frame that has a valid viewport for prioritizing tiles. 175 // frame that has a valid viewport for prioritizing tiles.
175 gfx::Rect visible_rect_for_tile_priority_; 176 gfx::Rect visible_rect_for_tile_priority_;
176 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; 177 gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 179 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
179 }; 180 };
180 181
181 } // namespace cc 182 } // namespace cc
182 183
183 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 184 #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