| OLD | NEW |
| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
| 13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
| 14 #include "cc/output/copy_output_request.h" | 14 #include "cc/output/copy_output_request.h" |
| 15 #include "cc/proto/gfx_conversions.h" | |
| 16 #include "cc/trees/clip_node.h" | 15 #include "cc/trees/clip_node.h" |
| 17 #include "cc/trees/effect_node.h" | 16 #include "cc/trees/effect_node.h" |
| 18 #include "cc/trees/layer_tree_host_common.h" | 17 #include "cc/trees/layer_tree_host_common.h" |
| 19 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
| 20 #include "cc/trees/mutator_host.h" | 19 #include "cc/trees/mutator_host.h" |
| 21 #include "cc/trees/property_tree.h" | 20 #include "cc/trees/property_tree.h" |
| 22 #include "cc/trees/scroll_node.h" | 21 #include "cc/trees/scroll_node.h" |
| 23 #include "cc/trees/transform_node.h" | 22 #include "cc/trees/transform_node.h" |
| 24 #include "ui/gfx/geometry/vector2d_conversions.h" | 23 #include "ui/gfx/geometry/vector2d_conversions.h" |
| 25 | 24 |
| (...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 | 2096 |
| 2098 const EffectNode* effect_node = effect_tree.Node(effect_id); | 2097 const EffectNode* effect_node = effect_tree.Node(effect_id); |
| 2099 | 2098 |
| 2100 bool success = GetFromTarget(transform_id, effect_id, transform); | 2099 bool success = GetFromTarget(transform_id, effect_id, transform); |
| 2101 transform->Scale(effect_node->surface_contents_scale.x(), | 2100 transform->Scale(effect_node->surface_contents_scale.x(), |
| 2102 effect_node->surface_contents_scale.y()); | 2101 effect_node->surface_contents_scale.y()); |
| 2103 return success; | 2102 return success; |
| 2104 } | 2103 } |
| 2105 | 2104 |
| 2106 } // namespace cc | 2105 } // namespace cc |
| OLD | NEW |