Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / cc / trees / layer_tree_host_client.h
index 74dcbc0..95480ef 100644 (file)
@@ -17,20 +17,24 @@ namespace cc {
 class ContextProvider;
 class InputHandlerClient;
 class OutputSurface;
+struct BeginFrameArgs;
 
 class LayerTreeHostClient {
  public:
   virtual void WillBeginMainFrame(int frame_id) = 0;
   // Marks finishing compositing-related tasks on the main thread. In threaded
   // mode, this corresponds to DidCommit().
+  virtual void BeginMainFrame(const BeginFrameArgs& args) = 0;
   virtual void DidBeginMainFrame() = 0;
-  virtual void Animate(base::TimeTicks frame_begin_time) = 0;
   virtual void Layout() = 0;
-  virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
-                                   float page_scale) = 0;
-  // Creates an OutputSurface. If fallback is true, it should attempt to
-  // create an OutputSurface that is guaranteed to initialize correctly.
-  virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
+  virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+                                   float page_scale,
+                                   float top_controls_delta) = 0;
+  // Request an OutputSurface from the client. When the client has one it should
+  // call LayerTreeHost::SetOutputSurface.  If fallback is true, it should
+  // attempt to create an OutputSurface that is guaranteed to initialize
+  // correctly.
+  virtual void RequestNewOutputSurface(bool fallback) = 0;
   virtual void DidInitializeOutputSurface() = 0;
   virtual void WillCommit() = 0;
   virtual void DidCommit() = 0;