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

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

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt 3? Created 5 years, 9 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const PictureLayerTiling* tiling) override; 74 const PictureLayerTiling* tiling) override;
75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; 75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
76 WhichTree GetTree() const override; 76 WhichTree GetTree() const override;
77 bool RequiresHighResToDraw() const override; 77 bool RequiresHighResToDraw() const override;
78 78
79 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, 79 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source,
80 Region* new_invalidation, 80 Region* new_invalidation,
81 const PictureLayerTilingSet* pending_set); 81 const PictureLayerTilingSet* pending_set);
82 bool UpdateTiles(bool resourceless_software_draw); 82 bool UpdateTiles(bool resourceless_software_draw);
83 void UpdateCanUseLCDTextAfterCommit(); 83 void UpdateCanUseLCDTextAfterCommit();
84 void UpdateViewportAfterCommit();
84 bool RasterSourceUsesLCDText() const; 85 bool RasterSourceUsesLCDText() const;
85 86
86 // Mask-related functions. 87 // Mask-related functions.
87 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 88 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
88 gfx::Size* resource_size) const override; 89 gfx::Size* resource_size) const override;
89 90
90 void SetNearestNeighbor(bool nearest_neighbor); 91 void SetNearestNeighbor(bool nearest_neighbor);
91 92
92 size_t GPUMemoryUsageInBytes() const override; 93 size_t GPUMemoryUsageInBytes() const override;
93 94
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // of comparing pointers, since objects pointed to are not guaranteed to 178 // of comparing pointers, since objects pointed to are not guaranteed to
178 // exist. 179 // exist.
179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 180 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 182 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
182 }; 183 };
183 184
184 } // namespace cc 185 } // namespace cc
185 186
186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 187 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698