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

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: WIP - comments + nits 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') | cc/trees/damage_tracker.cc » ('J')
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 9af9eb5aa590ce200d403272baa45ee9293e8b7a..5543b7515acb2952f8a04b708ffd5286333395e9 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -454,6 +454,10 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
const gfx::RectF& update_rect() const { return update_rect_; }
+ void UnionDamageContentRect(gfx::RectF damage_content_rect);
reveman 2014/04/15 16:25:59 nit: pass by const reference instead
reveman 2014/04/15 16:25:59 I would prefer SetContentDamageRect() and have the
enne (OOO) 2014/04/15 17:27:27 (Personally I think what you suggest is a violatio
reveman 2014/04/15 17:50:48 Makes sense. I prefer AddContentDamageRect() in th
enne (OOO) 2014/04/15 17:55:42 How about AddLayerDamageRect? Sorry to keep quibb
+
+ const gfx::RectF& damage_content_rect() const { return damage_content_rect_; }
reveman 2014/04/15 16:25:59 content_damage_rect()? makes it sound more like a
+
virtual base::DictionaryValue* LayerTreeAsJson() const;
void SetStackingOrderChanged(bool stacking_order_changed);
@@ -652,6 +656,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Uses layer (not content) space.
gfx::RectF update_rect_;
+ gfx::RectF damage_content_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') | cc/trees/damage_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698