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

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

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.h ('k') | cc/layers/picture_layer_impl.h » ('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 #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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 gfx::Rect visible_fill_rect = 253 gfx::Rect visible_fill_rect =
254 gfx::IntersectRects(visible_quad_rect, fill_rect); 254 gfx::IntersectRects(visible_quad_rect, fill_rect);
255 DebugBorderDrawQuad* fill_quad = 255 DebugBorderDrawQuad* fill_quad =
256 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); 256 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>();
257 fill_quad->SetNew(shared_quad_state, fill_rect, visible_fill_rect, 257 fill_quad->SetNew(shared_quad_state, fill_rect, visible_fill_rect,
258 fill_color, fill_width); 258 fill_color, fill_width);
259 } 259 }
260 } 260 }
261 261
262 void LayerImpl::GetContentsResourceId(ResourceId* resource_id, 262 void LayerImpl::GetContentsResourceId(ResourceId* resource_id,
263 gfx::Size* resource_size) const { 263 gfx::Size* resource_size,
264 gfx::SizeF* resource_uv_size) const {
264 NOTREACHED(); 265 NOTREACHED();
265 *resource_id = 0; 266 *resource_id = 0;
266 } 267 }
267 268
268 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) { 269 gfx::Vector2dF LayerImpl::ScrollBy(const gfx::Vector2dF& scroll) {
269 ScrollTree& scroll_tree = GetScrollTree(); 270 ScrollTree& scroll_tree = GetScrollTree();
270 ScrollNode* scroll_node = scroll_tree.Node(scroll_tree_index()); 271 ScrollNode* scroll_node = scroll_tree.Node(scroll_tree_index());
271 return scroll_tree.ScrollBy(scroll_node, scroll, layer_tree_impl()); 272 return scroll_tree.ScrollBy(scroll_node, scroll, layer_tree_impl());
272 } 273 }
273 274
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 973
973 ScrollTree& LayerImpl::GetScrollTree() const { 974 ScrollTree& LayerImpl::GetScrollTree() const {
974 return GetPropertyTrees()->scroll_tree; 975 return GetPropertyTrees()->scroll_tree;
975 } 976 }
976 977
977 TransformTree& LayerImpl::GetTransformTree() const { 978 TransformTree& LayerImpl::GetTransformTree() const {
978 return GetPropertyTrees()->transform_tree; 979 return GetPropertyTrees()->transform_tree;
979 } 980 }
980 981
981 } // namespace cc 982 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698