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

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

Issue 2099743002: cc: Move background filters to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ' Created 4 years, 6 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/occlusion_tracker_unittest.cc ('k') | cc/trees/property_tree.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 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 #ifndef CC_TREES_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <unordered_map> 11 #include <unordered_map>
12 #include <vector> 12 #include <vector>
13 13
14 #include "cc/base/cc_export.h" 14 #include "cc/base/cc_export.h"
15 #include "cc/base/synced_property.h" 15 #include "cc/base/synced_property.h"
16 #include "cc/output/filter_operations.h"
16 #include "ui/gfx/geometry/rect_f.h" 17 #include "ui/gfx/geometry/rect_f.h"
17 #include "ui/gfx/geometry/scroll_offset.h" 18 #include "ui/gfx/geometry/scroll_offset.h"
18 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
19 20
20 namespace base { 21 namespace base {
21 namespace trace_event { 22 namespace trace_event {
22 class TracedValue; 23 class TracedValue;
23 } 24 }
24 } 25 }
25 26
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 281
281 typedef TreeNode<ClipNodeData> ClipNode; 282 typedef TreeNode<ClipNodeData> ClipNode;
282 283
283 struct CC_EXPORT EffectNodeData { 284 struct CC_EXPORT EffectNodeData {
284 EffectNodeData(); 285 EffectNodeData();
285 EffectNodeData(const EffectNodeData& other); 286 EffectNodeData(const EffectNodeData& other);
286 287
287 float opacity; 288 float opacity;
288 float screen_space_opacity; 289 float screen_space_opacity;
289 290
291 FilterOperations background_filters;
292
290 bool has_render_surface; 293 bool has_render_surface;
291 RenderSurfaceImpl* render_surface; 294 RenderSurfaceImpl* render_surface;
292 bool has_copy_request; 295 bool has_copy_request;
293 bool has_background_filters;
294 bool hidden_by_backface_visibility; 296 bool hidden_by_backface_visibility;
295 bool double_sided; 297 bool double_sided;
296 bool is_drawn; 298 bool is_drawn;
297 // TODO(jaydasika) : Delete this after implementation of 299 // TODO(jaydasika) : Delete this after implementation of
298 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) 300 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
299 bool subtree_hidden; 301 bool subtree_hidden;
300 bool has_potential_opacity_animation; 302 bool has_potential_opacity_animation;
301 bool is_currently_animating_opacity; 303 bool is_currently_animating_opacity;
302 // We need to track changes to effects on the compositor to compute damage 304 // We need to track changes to effects on the compositor to compute damage
303 // rect. 305 // rect.
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 792
791 private: 793 private:
792 gfx::Vector2dF inner_viewport_container_bounds_delta_; 794 gfx::Vector2dF inner_viewport_container_bounds_delta_;
793 gfx::Vector2dF outer_viewport_container_bounds_delta_; 795 gfx::Vector2dF outer_viewport_container_bounds_delta_;
794 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 796 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
795 }; 797 };
796 798
797 } // namespace cc 799 } // namespace cc
798 800
799 #endif // CC_TREES_PROPERTY_TREE_H_ 801 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698