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

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

Issue 2828353003: Determine mask UVs based on texture size (Closed)
Patch Set: nit Created 3 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/layers/layer_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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, 70 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source,
71 Region* new_invalidation, 71 Region* new_invalidation,
72 const PictureLayerTilingSet* pending_set); 72 const PictureLayerTilingSet* pending_set);
73 bool UpdateTiles(); 73 bool UpdateTiles();
74 void UpdateCanUseLCDTextAfterCommit(); 74 void UpdateCanUseLCDTextAfterCommit();
75 bool RasterSourceUsesLCDText() const; 75 bool RasterSourceUsesLCDText() const;
76 WhichTree GetTree() const; 76 WhichTree GetTree() const;
77 77
78 // Mask-related functions. 78 // Mask-related functions.
79 void GetContentsResourceId(ResourceId* resource_id, 79 void GetContentsResourceId(ResourceId* resource_id,
80 gfx::Size* resource_size) const override; 80 gfx::Size* resource_size,
81 gfx::SizeF* resource_uv_size) const override;
81 82
82 void SetNearestNeighbor(bool nearest_neighbor); 83 void SetNearestNeighbor(bool nearest_neighbor);
83 84
84 void SetUseTransformedRasterization(bool use); 85 void SetUseTransformedRasterization(bool use);
85 86
86 size_t GPUMemoryUsageInBytes() const override; 87 size_t GPUMemoryUsageInBytes() const override;
87 88
88 void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override; 89 void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override;
89 90
90 bool CanHaveTilings() const; 91 bool CanHaveTilings() const;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // of comparing pointers, since objects pointed to are not guaranteed to 170 // of comparing pointers, since objects pointed to are not guaranteed to
170 // exist. 171 // exist.
171 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 172 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 174 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
174 }; 175 };
175 176
176 } // namespace cc 177 } // namespace cc
177 178
178 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 179 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698