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

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: Fix crashes 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..9312e02af91308e02768b028c61ab2811592b1d0 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 this layer has had a delegated 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