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

Side by Side Diff: cc/trees/damage_tracker.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, 5 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/proto/property_tree.proto ('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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 gfx::Rect TrackDamageFromActiveLayers( 53 gfx::Rect TrackDamageFromActiveLayers(
54 const LayerImplList& layer_list, 54 const LayerImplList& layer_list,
55 const RenderSurfaceImpl* target_surface); 55 const RenderSurfaceImpl* target_surface);
56 gfx::Rect TrackDamageFromSurfaceMask(LayerImpl* target_surface_mask_layer); 56 gfx::Rect TrackDamageFromSurfaceMask(LayerImpl* target_surface_mask_layer);
57 gfx::Rect TrackDamageFromLeftoverRects(); 57 gfx::Rect TrackDamageFromLeftoverRects();
58 58
59 void PrepareRectHistoryForUpdate(); 59 void PrepareRectHistoryForUpdate();
60 60
61 // These helper functions are used only in TrackDamageFromActiveLayers(). 61 // These helper functions are used only in TrackDamageFromActiveLayers().
62 void ExtendDamageForLayer(LayerImpl* layer, gfx::Rect* target_damage_rect); 62 void ExtendDamageForLayer(LayerImpl* layer, gfx::Rect* target_damage_rect);
63 void ExtendDamageForRenderSurface(LayerImpl* layer, 63 void ExtendDamageForRenderSurface(RenderSurfaceImpl* render_surface,
64 gfx::Rect* target_damage_rect); 64 gfx::Rect* target_damage_rect);
65 65
66 struct LayerRectMapData { 66 struct LayerRectMapData {
67 LayerRectMapData() : layer_id_(0), mailboxId_(0) {} 67 LayerRectMapData() : layer_id_(0), mailboxId_(0) {}
68 explicit LayerRectMapData(int layer_id) 68 explicit LayerRectMapData(int layer_id)
69 : layer_id_(layer_id), mailboxId_(0) {} 69 : layer_id_(layer_id), mailboxId_(0) {}
70 void Update(const gfx::Rect& rect, unsigned int mailboxId) { 70 void Update(const gfx::Rect& rect, unsigned int mailboxId) {
71 mailboxId_ = mailboxId; 71 mailboxId_ = mailboxId;
72 rect_ = rect; 72 rect_ = rect;
73 } 73 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 unsigned int mailboxId_; 110 unsigned int mailboxId_;
111 gfx::Rect current_damage_rect_; 111 gfx::Rect current_damage_rect_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(DamageTracker); 113 DISALLOW_COPY_AND_ASSIGN(DamageTracker);
114 }; 114 };
115 115
116 } // namespace cc 116 } // namespace cc
117 117
118 #endif // CC_TREES_DAMAGE_TRACKER_H_ 118 #endif // CC_TREES_DAMAGE_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698