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

Side by Side Diff: cc/layers/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 | « no previous file | cc/layers/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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 virtual void DidDraw(ResourceProvider* resource_provider); 136 virtual void DidDraw(ResourceProvider* resource_provider);
137 137
138 // Verify that the resource ids in the quad are valid. 138 // Verify that the resource ids in the quad are valid.
139 void ValidateQuadResources(DrawQuad* quad) const { 139 void ValidateQuadResources(DrawQuad* quad) const {
140 #if DCHECK_IS_ON() 140 #if DCHECK_IS_ON()
141 ValidateQuadResourcesInternal(quad); 141 ValidateQuadResourcesInternal(quad);
142 #endif 142 #endif
143 } 143 }
144 144
145 virtual void GetContentsResourceId(ResourceId* resource_id, 145 virtual void GetContentsResourceId(ResourceId* resource_id,
146 gfx::Size* resource_size) const; 146 gfx::Size* resource_size,
147 gfx::SizeF* resource_uv_size) const;
147 148
148 virtual void NotifyTileStateChanged(const Tile* tile) {} 149 virtual void NotifyTileStateChanged(const Tile* tile) {}
149 150
150 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 151 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
151 152
152 // Returns true if this layer has content to draw. 153 // Returns true if this layer has content to draw.
153 void SetDrawsContent(bool draws_content); 154 void SetDrawsContent(bool draws_content);
154 bool DrawsContent() const { return draws_content_; } 155 bool DrawsContent() const { return draws_content_; }
155 156
156 LayerImplTestProperties* test_properties() { 157 LayerImplTestProperties* test_properties() {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 bool needs_show_scrollbars_ : 1; 558 bool needs_show_scrollbars_ : 1;
558 559
559 bool raster_even_if_not_in_rsll_ : 1; 560 bool raster_even_if_not_in_rsll_ : 1;
560 561
561 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 562 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
562 }; 563 };
563 564
564 } // namespace cc 565 } // namespace cc
565 566
566 #endif // CC_LAYERS_LAYER_IMPL_H_ 567 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698