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

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

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: Created 4 years, 1 month 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
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/proto/gfx_conversions.h" 6 #include "cc/proto/gfx_conversions.h"
7 #include "cc/proto/skia_conversions.h" 7 #include "cc/proto/skia_conversions.h"
8 #include "cc/trees/effect_node.h" 8 #include "cc/trees/effect_node.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 EffectNode::EffectNode() 12 EffectNode::EffectNode()
13 : id(-1), 13 : id(-1),
14 parent_id(-1), 14 parent_id(-1),
15 owner_id(-1), 15 owner_id(-1),
16 opacity(1.f), 16 opacity(1.f),
17 screen_space_opacity(1.f), 17 screen_space_opacity(1.f),
18 blend_mode(SkXfermode::kSrcOver_Mode), 18 blend_mode(SkBlendMode::kSrcOver),
19 has_render_surface(false), 19 has_render_surface(false),
20 render_surface(nullptr), 20 render_surface(nullptr),
21 has_copy_request(false), 21 has_copy_request(false),
22 hidden_by_backface_visibility(false), 22 hidden_by_backface_visibility(false),
23 double_sided(false), 23 double_sided(false),
24 is_drawn(true), 24 is_drawn(true),
25 subtree_hidden(false), 25 subtree_hidden(false),
26 has_potential_filter_animation(false), 26 has_potential_filter_animation(false),
27 has_potential_opacity_animation(false), 27 has_potential_opacity_animation(false),
28 is_currently_animating_filter(false), 28 is_currently_animating_filter(false),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 value->SetBoolean("effect_changed", effect_changed); 81 value->SetBoolean("effect_changed", effect_changed);
82 value->SetInteger("num_copy_requests_in_subtree", 82 value->SetInteger("num_copy_requests_in_subtree",
83 num_copy_requests_in_subtree); 83 num_copy_requests_in_subtree);
84 value->SetInteger("transform_id", transform_id); 84 value->SetInteger("transform_id", transform_id);
85 value->SetInteger("clip_id", clip_id); 85 value->SetInteger("clip_id", clip_id);
86 value->SetInteger("target_id", target_id); 86 value->SetInteger("target_id", target_id);
87 value->SetInteger("mask_layer_id", mask_layer_id); 87 value->SetInteger("mask_layer_id", mask_layer_id);
88 } 88 }
89 89
90 } // namespace cc 90 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698