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

Unified Diff: cc/layers/layer_impl.h

Issue 219963005: cc: Add support for partial swaps when using impl-side painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve cc_unittests build error Created 6 years, 8 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 | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index b6f0b0510043fa82de10f4dbe7b43c7dcae91496..06498562c73118855bf99b114d3c35ba6bcae033 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -458,6 +458,10 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
const gfx::RectF& update_rect() const { return update_rect_; }
+ void AddDamageRect(const gfx::RectF& damage_rect);
+
+ const gfx::RectF& damage_rect() const { return damage_rect_; }
+
virtual base::DictionaryValue* LayerTreeAsJson() const;
void SetStackingOrderChanged(bool stacking_order_changed);
@@ -659,6 +663,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Uses layer (not content) space.
gfx::RectF update_rect_;
+ // This rect is in layer space.
+ gfx::RectF damage_rect_;
+
// Manages animations for this layer.
scoped_refptr<LayerAnimationController> layer_animation_controller_;
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698