Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 14e218194e026d57cf300dd7a41a58ac21cb5b8b..94b58b801b21b96c7ba47272bbb2d9cb745804e3 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -481,23 +481,6 @@ void ThreadProxy::SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) { |
SetNeedsRedrawOnImplThread(); |
} |
-void ThreadProxy::SetSwapUsedIncompleteTileOnImplThread( |
- bool used_incomplete_tile) { |
- DCHECK(IsImplThread()); |
- if (used_incomplete_tile) { |
- TRACE_EVENT_INSTANT0("cc", |
- "ThreadProxy::SetSwapUsedIncompleteTileOnImplThread", |
- TRACE_EVENT_SCOPE_THREAD); |
- } |
- impl().scheduler->SetSwapUsedIncompleteTile(used_incomplete_tile); |
-} |
- |
-void ThreadProxy::DidInitializeVisibleTileOnImplThread() { |
- TRACE_EVENT0("cc", "ThreadProxy::DidInitializeVisibleTileOnImplThread"); |
- DCHECK(IsImplThread()); |
- impl().scheduler->SetNeedsRedraw(); |
-} |
- |
void ThreadProxy::MainThreadHasStoppedFlinging() { |
DCHECK(IsMainThread()); |
Proxy::ImplThreadTaskRunner()->PostTask( |
@@ -986,12 +969,6 @@ void ThreadProxy::ScheduledActionCommit() { |
impl().timing_history.DidCommit(); |
} |
-void ThreadProxy::ScheduledActionUpdateVisibleTiles() { |
- TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionUpdateVisibleTiles"); |
- DCHECK(IsImplThread()); |
- impl().layer_tree_host_impl->UpdateVisibleTiles(); |
-} |
- |
void ThreadProxy::ScheduledActionActivateSyncTree() { |
TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionActivateSyncTree"); |
DCHECK(IsImplThread()); |
@@ -1052,15 +1029,8 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) { |
bool start_ready_animations = draw_frame; |
impl().layer_tree_host_impl->UpdateAnimationState(start_ready_animations); |
- if (draw_frame) { |
- bool did_request_swap = impl().layer_tree_host_impl->SwapBuffers(frame); |
- |
- // We don't know if we have incomplete tiles if we didn't actually swap. |
- if (did_request_swap) { |
- DCHECK(!frame.has_no_damage); |
- SetSwapUsedIncompleteTileOnImplThread(frame.contains_incomplete_tile); |
- } |
- } |
+ if (draw_frame) |
+ impl().layer_tree_host_impl->SwapBuffers(frame); |
// Tell the main thread that the the newly-commited frame was drawn. |
if (impl().next_frame_is_newly_committed_frame) { |