| 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/thread_proxy.h" | 5 #include "cc/thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/delay_based_time_source.h" | 9 #include "cc/delay_based_time_source.h" |
| 10 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.h" |
| 11 #include "cc/frame_rate_controller.h" | 11 #include "cc/frame_rate_controller.h" |
| 12 #include "cc/input_handler.h" | 12 #include "cc/input_handler.h" |
| 13 #include "cc/layer_tree_host.h" | 13 #include "cc/layer_tree_host.h" |
| 14 #include "cc/output_surface.h" | 14 #include "cc/output_surface.h" |
| 15 #include "cc/prioritized_resource_manager.h" |
| 15 #include "cc/scheduler.h" | 16 #include "cc/scheduler.h" |
| 16 #include "cc/thread.h" | 17 #include "cc/thread.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebSharedGraphicsCo
ntext3D.h" | 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebSharedGraphicsCo
ntext3D.h" |
| 18 | 19 |
| 19 using WebKit::WebSharedGraphicsContext3D; | 20 using WebKit::WebSharedGraphicsContext3D; |
| 20 | 21 |
| 21 namespace { | 22 namespace { |
| 22 | 23 |
| 23 // Measured in seconds. | 24 // Measured in seconds. |
| 24 const double contextRecreationTickRate = 0.03; | 25 const double contextRecreationTickRate = 0.03; |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } | 1019 } |
| 1019 | 1020 |
| 1020 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ
est) | 1021 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ
est) |
| 1021 { | 1022 { |
| 1022 DCHECK(isImplThread()); | 1023 DCHECK(isImplThread()); |
| 1023 request->commitPending = m_schedulerOnImplThread->commitPending(); | 1024 request->commitPending = m_schedulerOnImplThread->commitPending(); |
| 1024 request->completion.signal(); | 1025 request->completion.signal(); |
| 1025 } | 1026 } |
| 1026 | 1027 |
| 1027 } // namespace cc | 1028 } // namespace cc |
| OLD | NEW |