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

Side by Side Diff: cc/trees/draw_property_utils.cc

Issue 2168753002: cc : Use sublayer scale from effect tree (4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/trees/layer_tree_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/trees/draw_property_utils.h" 5 #include "cc/trees/draw_property_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 void ComputeSurfaceDrawProperties(const PropertyTrees* property_trees, 1463 void ComputeSurfaceDrawProperties(const PropertyTrees* property_trees,
1464 RenderSurfaceImpl* render_surface) { 1464 RenderSurfaceImpl* render_surface) {
1465 const ClipNode* clip_node = 1465 const ClipNode* clip_node =
1466 property_trees->clip_tree.Node(render_surface->ClipTreeIndex()); 1466 property_trees->clip_tree.Node(render_surface->ClipTreeIndex());
1467 1467
1468 SetSurfaceIsClipped(clip_node, render_surface); 1468 SetSurfaceIsClipped(clip_node, render_surface);
1469 SetSurfaceDrawOpacity(property_trees->effect_tree, render_surface); 1469 SetSurfaceDrawOpacity(property_trees->effect_tree, render_surface);
1470 SetSurfaceDrawTransform(property_trees->transform_tree, 1470 SetSurfaceDrawTransform(property_trees->transform_tree,
1471 property_trees->effect_tree, render_surface); 1471 property_trees->effect_tree, render_surface);
1472 render_surface->SetScreenSpaceTransform( 1472 render_surface->SetScreenSpaceTransform(
1473 property_trees->transform_tree 1473 property_trees->ToScreenSpaceTransformWithoutSurfaceContentsScale(
1474 .ToScreenSpaceTransformWithoutSurfaceContentsScale( 1474 render_surface->TransformTreeIndex(),
1475 render_surface->TransformTreeIndex())); 1475 render_surface->EffectTreeIndex()));
1476 1476
1477 if (render_surface->HasReplica()) { 1477 if (render_surface->HasReplica()) {
1478 gfx::Transform replica_to_surface = ReplicaToSurfaceTransform( 1478 gfx::Transform replica_to_surface = ReplicaToSurfaceTransform(
1479 render_surface, property_trees->transform_tree, 1479 render_surface, property_trees->transform_tree,
1480 property_trees->effect_tree); 1480 property_trees->effect_tree);
1481 render_surface->SetReplicaDrawTransform(render_surface->draw_transform() * 1481 render_surface->SetReplicaDrawTransform(render_surface->draw_transform() *
1482 replica_to_surface); 1482 replica_to_surface);
1483 render_surface->SetReplicaScreenSpaceTransform( 1483 render_surface->SetReplicaScreenSpaceTransform(
1484 render_surface->screen_space_transform() * replica_to_surface); 1484 render_surface->screen_space_transform() * replica_to_surface);
1485 } else { 1485 } else {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 void UpdateElasticOverscroll(PropertyTrees* property_trees, 1587 void UpdateElasticOverscroll(PropertyTrees* property_trees,
1588 const Layer* overscroll_elasticity_layer, 1588 const Layer* overscroll_elasticity_layer,
1589 const gfx::Vector2dF& elastic_overscroll) { 1589 const gfx::Vector2dF& elastic_overscroll) {
1590 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer, 1590 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer,
1591 elastic_overscroll); 1591 elastic_overscroll);
1592 } 1592 }
1593 1593
1594 } // namespace draw_property_utils 1594 } // namespace draw_property_utils
1595 1595
1596 } // namespace cc 1596 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698