| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/thread_proxy.h" | 5 #include "cc/trees/thread_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 bool forced_draw = false; | 1145 bool forced_draw = false; |
| 1146 return DrawSwapInternal(forced_draw); | 1146 return DrawSwapInternal(forced_draw); |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 DrawResult ThreadProxy::ScheduledActionDrawAndSwapForced() { | 1149 DrawResult ThreadProxy::ScheduledActionDrawAndSwapForced() { |
| 1150 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndSwapForced"); | 1150 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndSwapForced"); |
| 1151 bool forced_draw = true; | 1151 bool forced_draw = true; |
| 1152 return DrawSwapInternal(forced_draw); | 1152 return DrawSwapInternal(forced_draw); |
| 1153 } | 1153 } |
| 1154 | 1154 |
| 1155 DrawResult ThreadProxy::ScheduledActionDrawAndReadback() { | |
| 1156 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndReadback"); | |
| 1157 NOTREACHED(); | |
| 1158 return INVALID_RESULT; | |
| 1159 } | |
| 1160 | |
| 1161 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { | 1155 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { |
| 1162 if (impl().current_resource_update_controller) | 1156 if (impl().current_resource_update_controller) |
| 1163 impl().current_resource_update_controller->PerformMoreUpdates(time); | 1157 impl().current_resource_update_controller->PerformMoreUpdates(time); |
| 1164 } | 1158 } |
| 1165 | 1159 |
| 1166 base::TimeDelta ThreadProxy::DrawDurationEstimate() { | 1160 base::TimeDelta ThreadProxy::DrawDurationEstimate() { |
| 1167 return impl().timing_history.DrawDurationEstimate(); | 1161 return impl().timing_history.DrawDurationEstimate(); |
| 1168 } | 1162 } |
| 1169 | 1163 |
| 1170 base::TimeDelta ThreadProxy::BeginMainFrameToCommitDurationEstimate() { | 1164 base::TimeDelta ThreadProxy::BeginMainFrameToCommitDurationEstimate() { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 | 1501 |
| 1508 impl().timing_history.DidActivatePendingTree(); | 1502 impl().timing_history.DidActivatePendingTree(); |
| 1509 } | 1503 } |
| 1510 | 1504 |
| 1511 void ThreadProxy::DidManageTiles() { | 1505 void ThreadProxy::DidManageTiles() { |
| 1512 DCHECK(IsImplThread()); | 1506 DCHECK(IsImplThread()); |
| 1513 impl().scheduler->DidManageTiles(); | 1507 impl().scheduler->DidManageTiles(); |
| 1514 } | 1508 } |
| 1515 | 1509 |
| 1516 } // namespace cc | 1510 } // namespace cc |
| OLD | NEW |