| Index: cc/trees/clip_node.cc
|
| diff --git a/cc/trees/clip_node.cc b/cc/trees/clip_node.cc
|
| index b49263d5a332086920137f9c24b180067dea5dbf..0401159683521797e04f9b0434e5853edb65142d 100644
|
| --- a/cc/trees/clip_node.cc
|
| +++ b/cc/trees/clip_node.cc
|
| @@ -6,7 +6,6 @@
|
| #include "cc/base/math_util.h"
|
| #include "cc/proto/cc_conversions.h"
|
| #include "cc/proto/gfx_conversions.h"
|
| -#include "cc/proto/property_tree.pb.h"
|
| #include "cc/trees/clip_node.h"
|
|
|
| namespace cc {
|
| @@ -45,59 +44,6 @@ bool ClipNode::operator==(const ClipNode& other) const {
|
| resets_clip == other.resets_clip;
|
| }
|
|
|
| -void ClipNode::ToProtobuf(proto::TreeNode* proto) const {
|
| - proto->set_id(id);
|
| - proto->set_parent_id(parent_id);
|
| - proto->set_owner_id(owner_id);
|
| -
|
| - DCHECK(!proto->has_clip_node_data());
|
| - proto::ClipNodeData* data = proto->mutable_clip_node_data();
|
| -
|
| - data->set_clip_type(ClipNodeTypeToProto(clip_type));
|
| -
|
| - RectFToProto(clip, data->mutable_clip());
|
| - RectFToProto(combined_clip_in_target_space,
|
| - data->mutable_combined_clip_in_target_space());
|
| - RectFToProto(clip_in_target_space, data->mutable_clip_in_target_space());
|
| -
|
| - data->set_transform_id(transform_id);
|
| - data->set_target_transform_id(target_transform_id);
|
| - data->set_target_effect_id(target_effect_id);
|
| - data->set_layer_clipping_uses_only_local_clip(
|
| - layer_clipping_uses_only_local_clip);
|
| - data->set_target_is_clipped(target_is_clipped);
|
| - data->set_layers_are_clipped(layers_are_clipped);
|
| - data->set_layers_are_clipped_when_surfaces_disabled(
|
| - layers_are_clipped_when_surfaces_disabled);
|
| - data->set_resets_clip(resets_clip);
|
| -}
|
| -
|
| -void ClipNode::FromProtobuf(const proto::TreeNode& proto) {
|
| - id = proto.id();
|
| - parent_id = proto.parent_id();
|
| - owner_id = proto.owner_id();
|
| -
|
| - DCHECK(proto.has_clip_node_data());
|
| - const proto::ClipNodeData& data = proto.clip_node_data();
|
| -
|
| - clip_type = ClipNodeTypeFromProto(data.clip_type());
|
| - clip = ProtoToRectF(data.clip());
|
| - combined_clip_in_target_space =
|
| - ProtoToRectF(data.combined_clip_in_target_space());
|
| - clip_in_target_space = ProtoToRectF(data.clip_in_target_space());
|
| -
|
| - transform_id = data.transform_id();
|
| - target_transform_id = data.target_transform_id();
|
| - target_effect_id = data.target_effect_id();
|
| - layer_clipping_uses_only_local_clip =
|
| - data.layer_clipping_uses_only_local_clip();
|
| - target_is_clipped = data.target_is_clipped();
|
| - layers_are_clipped = data.layers_are_clipped();
|
| - layers_are_clipped_when_surfaces_disabled =
|
| - data.layers_are_clipped_when_surfaces_disabled();
|
| - resets_clip = data.resets_clip();
|
| -}
|
| -
|
| void ClipNode::AsValueInto(base::trace_event::TracedValue* value) const {
|
| value->SetInteger("id", id);
|
| value->SetInteger("parent_id", parent_id);
|
|
|