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

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

Issue 2612883002: Rename cc property tree node owner_id to owning_layer_id. (Closed)
Patch Set: Created 3 years, 11 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/trees/clip_node.h ('k') | cc/trees/draw_property_utils.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/trace_event/trace_event_argument.h" 5 #include "base/trace_event/trace_event_argument.h"
6 #include "cc/base/math_util.h" 6 #include "cc/base/math_util.h"
7 #include "cc/proto/cc_conversions.h" 7 #include "cc/proto/cc_conversions.h"
8 #include "cc/proto/gfx_conversions.h" 8 #include "cc/proto/gfx_conversions.h"
9 #include "cc/trees/clip_node.h" 9 #include "cc/trees/clip_node.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 ClipNode::ClipNode() 13 ClipNode::ClipNode()
14 : id(-1), 14 : id(-1),
15 parent_id(-1), 15 parent_id(-1),
16 owner_id(-1), 16 owning_layer_id(-1),
17 clip_type(ClipType::NONE), 17 clip_type(ClipType::NONE),
18 transform_id(-1), 18 transform_id(-1),
19 target_transform_id(-1), 19 target_transform_id(-1),
20 target_effect_id(-1), 20 target_effect_id(-1),
21 layer_clipping_uses_only_local_clip(false), 21 layer_clipping_uses_only_local_clip(false),
22 layers_are_clipped(false), 22 layers_are_clipped(false),
23 layers_are_clipped_when_surfaces_disabled(false), 23 layers_are_clipped_when_surfaces_disabled(false),
24 resets_clip(false) {} 24 resets_clip(false) {}
25 25
26 ClipNode::ClipNode(const ClipNode& other) = default; 26 ClipNode::ClipNode(const ClipNode& other) = default;
27 27
28 bool ClipNode::operator==(const ClipNode& other) const { 28 bool ClipNode::operator==(const ClipNode& other) const {
29 return id == other.id && parent_id == other.parent_id && 29 return id == other.id && parent_id == other.parent_id &&
30 owner_id == other.owner_id && clip_type == other.clip_type && 30 owning_layer_id == other.owning_layer_id &&
31 clip == other.clip && 31 clip_type == other.clip_type && clip == other.clip &&
32 combined_clip_in_target_space == other.combined_clip_in_target_space && 32 combined_clip_in_target_space == other.combined_clip_in_target_space &&
33 clip_in_target_space == other.clip_in_target_space && 33 clip_in_target_space == other.clip_in_target_space &&
34 transform_id == other.transform_id && 34 transform_id == other.transform_id &&
35 target_transform_id == other.target_transform_id && 35 target_transform_id == other.target_transform_id &&
36 target_effect_id == other.target_effect_id && 36 target_effect_id == other.target_effect_id &&
37 layer_clipping_uses_only_local_clip == 37 layer_clipping_uses_only_local_clip ==
38 other.layer_clipping_uses_only_local_clip && 38 other.layer_clipping_uses_only_local_clip &&
39 layers_are_clipped == other.layers_are_clipped && 39 layers_are_clipped == other.layers_are_clipped &&
40 layers_are_clipped_when_surfaces_disabled == 40 layers_are_clipped_when_surfaces_disabled ==
41 other.layers_are_clipped_when_surfaces_disabled && 41 other.layers_are_clipped_when_surfaces_disabled &&
42 resets_clip == other.resets_clip; 42 resets_clip == other.resets_clip;
43 } 43 }
44 44
45 void ClipNode::AsValueInto(base::trace_event::TracedValue* value) const { 45 void ClipNode::AsValueInto(base::trace_event::TracedValue* value) const {
46 value->SetInteger("id", id); 46 value->SetInteger("id", id);
47 value->SetInteger("parent_id", parent_id); 47 value->SetInteger("parent_id", parent_id);
48 value->SetInteger("owner_id", owner_id); 48 value->SetInteger("owning_layer_id", owning_layer_id);
49 value->SetInteger("clip_type", static_cast<int>(clip_type)); 49 value->SetInteger("clip_type", static_cast<int>(clip_type));
50 MathUtil::AddToTracedValue("clip", clip, value); 50 MathUtil::AddToTracedValue("clip", clip, value);
51 value->SetInteger("transform_id", transform_id); 51 value->SetInteger("transform_id", transform_id);
52 value->SetInteger("target_transform_id", target_transform_id); 52 value->SetInteger("target_transform_id", target_transform_id);
53 value->SetInteger("target_effect_id", target_effect_id); 53 value->SetInteger("target_effect_id", target_effect_id);
54 value->SetBoolean("layer_clipping_uses_only_local_clip", 54 value->SetBoolean("layer_clipping_uses_only_local_clip",
55 layer_clipping_uses_only_local_clip); 55 layer_clipping_uses_only_local_clip);
56 value->SetBoolean("layers_are_clipped", layers_are_clipped); 56 value->SetBoolean("layers_are_clipped", layers_are_clipped);
57 value->SetBoolean("layers_are_clipped_when_surfaces_disabled", 57 value->SetBoolean("layers_are_clipped_when_surfaces_disabled",
58 layers_are_clipped_when_surfaces_disabled); 58 layers_are_clipped_when_surfaces_disabled);
59 value->SetBoolean("resets_clip", resets_clip); 59 value->SetBoolean("resets_clip", resets_clip);
60 } 60 }
61 61
62 } // namespace cc 62 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/clip_node.h ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698