Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / compositor / layer_delegate.h
index 12b137f..9312e02 100644 (file)
@@ -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;