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

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

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 years 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/test/surface_hittest_test_helpers.cc ('k') | cc/trees/effect_node.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 #ifndef CC_TREES_EFFECT_NODE_H_ 5 #ifndef CC_TREES_EFFECT_NODE_H_
6 #define CC_TREES_EFFECT_NODE_H_ 6 #define CC_TREES_EFFECT_NODE_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/output/filter_operations.h" 9 #include "cc/output/filter_operations.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkBlendMode.h"
11 #include "ui/gfx/geometry/point_f.h" 11 #include "ui/gfx/geometry/point_f.h"
12 #include "ui/gfx/geometry/size_f.h" 12 #include "ui/gfx/geometry/size_f.h"
13 13
14 namespace base { 14 namespace base {
15 namespace trace_event { 15 namespace trace_event {
16 class TracedValue; 16 class TracedValue;
17 } // namespace trace_event 17 } // namespace trace_event
18 } // namespace base 18 } // namespace base
19 19
20 namespace cc { 20 namespace cc {
21 21
22 class RenderSurfaceImpl; 22 class RenderSurfaceImpl;
23 23
24 struct CC_EXPORT EffectNode { 24 struct CC_EXPORT EffectNode {
25 EffectNode(); 25 EffectNode();
26 EffectNode(const EffectNode& other); 26 EffectNode(const EffectNode& other);
27 27
28 int id; 28 int id;
29 int parent_id; 29 int parent_id;
30 int owner_id; 30 int owner_id;
31 31
32 float opacity; 32 float opacity;
33 float screen_space_opacity; 33 float screen_space_opacity;
34 34
35 FilterOperations filters; 35 FilterOperations filters;
36 FilterOperations background_filters; 36 FilterOperations background_filters;
37 gfx::PointF filters_origin; 37 gfx::PointF filters_origin;
38 38
39 SkXfermode::Mode blend_mode; 39 SkBlendMode blend_mode;
40 40
41 gfx::Vector2dF surface_contents_scale; 41 gfx::Vector2dF surface_contents_scale;
42 42
43 gfx::Size unscaled_mask_target_size; 43 gfx::Size unscaled_mask_target_size;
44 44
45 bool has_render_surface; 45 bool has_render_surface;
46 RenderSurfaceImpl* render_surface; 46 RenderSurfaceImpl* render_surface;
47 // Only applicable if has render surface. A true value means a clip needs to 47 // Only applicable if has render surface. A true value means a clip needs to
48 // be applied to the output of the surface when it is drawn onto its parent 48 // be applied to the output of the surface when it is drawn onto its parent
49 // surface. 49 // surface.
(...skipping 24 matching lines...) Expand all
74 int mask_layer_id; 74 int mask_layer_id;
75 75
76 bool operator==(const EffectNode& other) const; 76 bool operator==(const EffectNode& other) const;
77 77
78 void AsValueInto(base::trace_event::TracedValue* value) const; 78 void AsValueInto(base::trace_event::TracedValue* value) const;
79 }; 79 };
80 80
81 } // namespace cc 81 } // namespace cc
82 82
83 #endif // CC_TREES_EFFECT_NODE_H_ 83 #endif // CC_TREES_EFFECT_NODE_H_
OLDNEW
« no previous file with comments | « cc/test/surface_hittest_test_helpers.cc ('k') | cc/trees/effect_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698