| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 if (!impl().layer_tree_host_impl) { | 200 if (!impl().layer_tree_host_impl) { |
| 201 begin_main_frame_sent_completion->Signal(); | 201 begin_main_frame_sent_completion->Signal(); |
| 202 request->success = false; | 202 request->success = false; |
| 203 request->completion.Signal(); | 203 request->completion.Signal(); |
| 204 return; | 204 return; |
| 205 } | 205 } |
| 206 | 206 |
| 207 impl().readback_request = request; | 207 impl().readback_request = request; |
| 208 | 208 |
| 209 impl().scheduler->SetNeedsForcedCommitForReadback(); | 209 impl().scheduler->SetNeedsForcedCommitForReadback(); |
| 210 if (impl().scheduler->CommitPending()) { | 210 if (impl().scheduler->IsBeginMainFrameSent()) { |
| 211 begin_main_frame_sent_completion->Signal(); | 211 begin_main_frame_sent_completion->Signal(); |
| 212 return; | 212 return; |
| 213 } | 213 } |
| 214 | 214 |
| 215 impl().begin_main_frame_sent_completion_event = | 215 impl().begin_main_frame_sent_completion_event = |
| 216 begin_main_frame_sent_completion; | 216 begin_main_frame_sent_completion; |
| 217 } | 217 } |
| 218 | 218 |
| 219 void ThreadProxy::FinishAllRendering() { | 219 void ThreadProxy::FinishAllRendering() { |
| 220 DCHECK(Proxy::IsMainThread()); | 220 DCHECK(Proxy::IsMainThread()); |
| (...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 | 1735 |
| 1736 impl().timing_history.DidActivatePendingTree(); | 1736 impl().timing_history.DidActivatePendingTree(); |
| 1737 } | 1737 } |
| 1738 | 1738 |
| 1739 void ThreadProxy::DidManageTiles() { | 1739 void ThreadProxy::DidManageTiles() { |
| 1740 DCHECK(IsImplThread()); | 1740 DCHECK(IsImplThread()); |
| 1741 impl().scheduler->DidManageTiles(); | 1741 impl().scheduler->DidManageTiles(); |
| 1742 } | 1742 } |
| 1743 | 1743 |
| 1744 } // namespace cc | 1744 } // namespace cc |
| OLD | NEW |