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

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

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/damage_tracker.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_DAMAGE_TRACKER_H_ 5 #ifndef CC_TREES_DAMAGE_TRACKER_H_
6 #define CC_TREES_DAMAGE_TRACKER_H_ 6 #define CC_TREES_DAMAGE_TRACKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 22 matching lines...) Expand all
33 ~DamageTracker(); 33 ~DamageTracker();
34 34
35 void DidDrawDamagedArea() { current_damage_rect_ = gfx::RectF(); } 35 void DidDrawDamagedArea() { current_damage_rect_ = gfx::RectF(); }
36 void AddDamageNextUpdate(gfx::RectF dmg) { current_damage_rect_.Union(dmg); } 36 void AddDamageNextUpdate(gfx::RectF dmg) { current_damage_rect_.Union(dmg); }
37 void UpdateDamageTrackingState( 37 void UpdateDamageTrackingState(
38 const LayerImplList& layer_list, 38 const LayerImplList& layer_list,
39 int target_surface_layer_id, 39 int target_surface_layer_id,
40 bool target_surface_property_changed_only_from_descendant, 40 bool target_surface_property_changed_only_from_descendant,
41 gfx::Rect target_surface_content_rect, 41 gfx::Rect target_surface_content_rect,
42 LayerImpl* target_surface_mask_layer, 42 LayerImpl* target_surface_mask_layer,
43 const FilterOperations& filters, 43 const FilterOperations& filters);
44 SkImageFilter* filter);
45 44
46 gfx::RectF current_damage_rect() { return current_damage_rect_; } 45 gfx::RectF current_damage_rect() { return current_damage_rect_; }
47 46
48 private: 47 private:
49 DamageTracker(); 48 DamageTracker();
50 49
51 gfx::RectF TrackDamageFromActiveLayers( 50 gfx::RectF TrackDamageFromActiveLayers(
52 const LayerImplList& layer_list, 51 const LayerImplList& layer_list,
53 int target_surface_layer_id); 52 int target_surface_layer_id);
54 gfx::RectF TrackDamageFromSurfaceMask(LayerImpl* target_surface_mask_layer); 53 gfx::RectF TrackDamageFromSurfaceMask(LayerImpl* target_surface_mask_layer);
(...skipping 16 matching lines...) Expand all
71 scoped_ptr<RectMap> next_rect_history_; 70 scoped_ptr<RectMap> next_rect_history_;
72 71
73 gfx::RectF current_damage_rect_; 72 gfx::RectF current_damage_rect_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(DamageTracker); 74 DISALLOW_COPY_AND_ASSIGN(DamageTracker);
76 }; 75 };
77 76
78 } // namespace cc 77 } // namespace cc
79 78
80 #endif // CC_TREES_DAMAGE_TRACKER_H_ 79 #endif // CC_TREES_DAMAGE_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698