Index: cc/trees/single_thread_proxy.h |
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h |
index 21b9f88a58dc01d386da1074f19933bea9c1bebf..030f1ca9b708698e0dd6b7af07fa65fd9b2ff69e 100644 |
--- a/cc/trees/single_thread_proxy.h |
+++ b/cc/trees/single_thread_proxy.h |
@@ -11,6 +11,7 @@ |
#include "cc/animation/animation_events.h" |
#include "cc/output/begin_frame_args.h" |
#include "cc/scheduler/scheduler.h" |
+#include "cc/trees/blocking_task_runner.h" |
#include "cc/trees/layer_tree_host_impl.h" |
#include "cc/trees/proxy.h" |
#include "cc/trees/proxy_timing_history.h" |
@@ -102,7 +103,7 @@ class CC_EXPORT SingleThreadProxy : public Proxy, |
virtual void PostDelayedScrollbarFadeOnImplThread( |
const base::Closure& start_fade, |
base::TimeDelta delay) override {} |
- virtual void DidActivateSyncTree() override {} |
+ virtual void DidActivateSyncTree() override; |
virtual void DidManageTiles() override; |
virtual void SetDebugState(const LayerTreeDebugState& debug_state) override {} |
@@ -119,11 +120,13 @@ class CC_EXPORT SingleThreadProxy : public Proxy, |
void BeginMainFrame(); |
void BeginMainFrameAbortedOnImplThread(); |
- void DoCommit(const BeginFrameArgs& begin_frame_args); |
+ void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); |
+ void DoCommit(); |
DrawResult DoComposite(base::TimeTicks frame_begin_time, |
LayerTreeHostImpl::FrameData* frame); |
void DoSwap(); |
void DidCommitAndDrawFrame(); |
+ void CommitComplete(); |
bool ShouldComposite() const; |
void UpdateBackgroundAnimateTicking(); |
@@ -141,6 +144,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy, |
scoped_ptr<Scheduler> scheduler_on_impl_thread_; |
ProxyTimingHistory timing_history_; |
+ scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; |
+ scoped_ptr<ResourceUpdateQueue> queue_for_commit_; |
bool next_frame_is_newly_committed_frame_; |
bool inside_draw_; |