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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 2828353003: Determine mask UVs based on texture size (Closed)
Patch Set: small fix 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
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 #include "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 gfx::Rect visible_fill_rect = 252 gfx::Rect visible_fill_rect =
253 gfx::IntersectRects(visible_quad_rect, fill_rect); 253 gfx::IntersectRects(visible_quad_rect, fill_rect);
254 DebugBorderDrawQuad* fill_quad = 254 DebugBorderDrawQuad* fill_quad =
255 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); 255 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>();
256 fill_quad->SetNew(shared_quad_state, fill_rect, visible_fill_rect, 256 fill_quad->SetNew(shared_quad_state, fill_rect, visible_fill_rect,
257 fill_color, fill_width); 257 fill_color, fill_width);
258 } 258 }
259 } 259 }
260 260
261 void LayerImpl::GetContentsResourceId(ResourceId* resource_id, 261 void LayerImpl::GetContentsResourceId(ResourceId* resource_id,
262 gfx::Size* resource_size) const { 262 gfx::Size* resource_size,
263 gfx::SizeF* resource_uv_size) const {
263 NOTREACHED(); 264 NOTREACHED();
264 *resource_id = 0; 265 *resource_id = 0;
265 } 266 }
266 267
267 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { 268 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) {
268 ScrollTree& scroll_tree = GetScrollTree(); 269 ScrollTree& scroll_tree = GetScrollTree();
269 ScrollNode* scroll_node = scroll_tree.Node(scroll_tree_index()); 270 ScrollNode* scroll_node = scroll_tree.Node(scroll_tree_index());
270 return scroll_tree.ScrollBy(scroll_node, scroll, layer_tree_impl()); 271 return scroll_tree.ScrollBy(scroll_node, scroll, layer_tree_impl());
271 } 272 }
272 273
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 980
980 ScrollTree& LayerImpl::GetScrollTree() const { 981 ScrollTree& LayerImpl::GetScrollTree() const {
981 return GetPropertyTrees()->scroll_tree; 982 return GetPropertyTrees()->scroll_tree;
982 } 983 }
983 984
984 TransformTree& LayerImpl::GetTransformTree() const { 985 TransformTree& LayerImpl::GetTransformTree() const {
985 return GetPropertyTrees()->transform_tree; 986 return GetPropertyTrees()->transform_tree;
986 } 987 }
987 988
988 } // namespace cc 989 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698