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

Unified Diff: ui/compositor/layer_delegate.h

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to LayerDelegate interface instead Created 6 years, 4 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
Index: ui/compositor/layer_delegate.h
diff --git a/ui/compositor/layer_delegate.h b/ui/compositor/layer_delegate.h
index 12b137f0cf2a16ebba5b3962ceee478e9c827b7f..76a537125f45d04d983067917b3cb8d1fdcf05cc 100644
--- a/ui/compositor/layer_delegate.h
+++ b/ui/compositor/layer_delegate.h
@@ -10,6 +10,7 @@
namespace gfx {
class Canvas;
+class Rect;
}
namespace ui {
@@ -21,6 +22,10 @@ class COMPOSITOR_EXPORT LayerDelegate {
// clipped to the Layer's invalid rect.
virtual void OnPaintLayer(gfx::Canvas* canvas) = 0;
+ // A notification that some sublayer in the tree has had a delegated
danakj 2014/08/18 20:01:49 that this layer not sublayer?
enne (OOO) 2014/08/18 23:32:21 Done.
+ // frame swap and will be repainted.
+ virtual void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) = 0;
+
// Called when the layer's device scale factor has changed.
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0;

Powered by Google App Engine
This is Rietveld 408576698