| Index: cc/trees/thread_proxy.h
|
| diff --git a/cc/trees/thread_proxy.h b/cc/trees/thread_proxy.h
|
| index 544ef87d6591d2e7e5951be1499df15831aa9603..e6f05e1a36ddd5c61154bbe6288097bde7cc2ccd 100644
|
| --- a/cc/trees/thread_proxy.h
|
| +++ b/cc/trees/thread_proxy.h
|
| @@ -49,6 +49,7 @@ class ThreadProxy : public Proxy,
|
| virtual void CreateAndInitializeOutputSurface() OVERRIDE;
|
| virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE;
|
| virtual void SetNeedsAnimate() OVERRIDE;
|
| + virtual void SetNeedsUpdateLayers() OVERRIDE;
|
| virtual void SetNeedsCommit() OVERRIDE;
|
| virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE;
|
| virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
|
| @@ -134,6 +135,7 @@ class ThreadProxy : public Proxy,
|
| void OnOutputSurfaceInitializeAttempted(
|
| bool success,
|
| const RendererCapabilities& capabilities);
|
| + void SendCommitRequestToImplThreadIfNeeded();
|
|
|
| // Called on impl thread.
|
| struct ReadbackRequest;
|
| @@ -145,7 +147,7 @@ class ThreadProxy : public Proxy,
|
| CompletionEvent* completion,
|
| ResourceUpdateQueue* queue,
|
| scoped_refptr<cc::ContextProvider> offscreen_context_provider);
|
| - void BeginFrameAbortedByMainThreadOnImplThread();
|
| + void BeginFrameAbortedByMainThreadOnImplThread(bool cancel_commit);
|
| void RequestReadbackOnImplThread(ReadbackRequest* request);
|
| void FinishAllRenderingOnImplThread(CompletionEvent* completion);
|
| void InitializeImplOnImplThread(CompletionEvent* completion);
|
| @@ -242,6 +244,8 @@ class ThreadProxy : public Proxy,
|
|
|
| bool inside_draw_;
|
|
|
| + bool can_cancel_commit_;
|
| +
|
| bool defer_commits_;
|
| scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_;
|
|
|
|
|