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

Unified Diff: cc/trees/damage_tracker.h

Issue 1976413002: cc : Fix damage rect bug caused by deletion of render surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/trees/damage_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/damage_tracker.h
diff --git a/cc/trees/damage_tracker.h b/cc/trees/damage_tracker.h
index d1ed0a1ac1f97b49fda7080fcc8b06fd395c8719..6d02af1ffe7c42b24b11cbb2c85fa718347fbe31 100644
--- a/cc/trees/damage_tracker.h
+++ b/cc/trees/damage_tracker.h
@@ -64,11 +64,15 @@ class CC_EXPORT DamageTracker {
gfx::Rect* target_damage_rect);
struct RectMapData {
- RectMapData() : layer_id_(0), mailboxId_(0) {}
- explicit RectMapData(int layer_id) : layer_id_(layer_id), mailboxId_(0) {}
- void Update(const gfx::Rect& rect, unsigned int mailboxId) {
+ RectMapData() : layer_id_(0), mailboxId_(0), is_render_surface_(false) {}
ajuma 2016/05/16 15:16:21 How about splitting the map in two, one map for la
jaydasika 2016/05/16 19:32:49 Done.
+ explicit RectMapData(int layer_id)
+ : layer_id_(layer_id), mailboxId_(0), is_render_surface_(false) {}
+ void Update(const gfx::Rect& rect,
+ unsigned int mailboxId,
+ bool is_render_surface) {
mailboxId_ = mailboxId;
rect_ = rect;
+ is_render_surface_ = is_render_surface;
}
bool operator < (const RectMapData& other) const {
@@ -77,6 +81,7 @@ class CC_EXPORT DamageTracker {
int layer_id_;
unsigned int mailboxId_;
+ bool is_render_surface_;
gfx::Rect rect_;
};
typedef std::vector<RectMapData> SortedRectMap;
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/trees/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698