Stop painting when receiving delegated frame

The SchedulePaintInRect call in DelegatedFrameHost is only there to
eventually notify an observer on the aura::Window that damage has
occurred (for the video detector).  Instead, just pass along the
damage to the LayerDelegate API and don't schedule a paint.

[email protected]
BUG=none

Review URL: https://codereview.chromium.org/464643003

Cr-Commit-Position: refs/heads/master@{#291582}
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 6af9cd7..0ff6a96 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -318,6 +318,10 @@
   // Notifies the layer that the device scale factor has changed.
   void OnDeviceScaleFactorChanged(float device_scale_factor);
 
+  // Notifies the layer that one of its children has received a new
+  // delegated frame.
+  void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip);
+
   // Requets a copy of the layer's output as a texture or bitmap.
   void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);