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" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 completion.wait(); | 257 completion.wait(); |
258 } | 258 } |
259 | 259 |
260 const RendererCapabilities& ThreadProxy::rendererCapabilities() const | 260 const RendererCapabilities& ThreadProxy::rendererCapabilities() const |
261 { | 261 { |
262 DCHECK(m_rendererInitialized); | 262 DCHECK(m_rendererInitialized); |
263 return m_RendererCapabilitiesMainThreadCopy; | 263 return m_RendererCapabilitiesMainThreadCopy; |
264 } | 264 } |
265 | 265 |
266 void ThreadProxy::loseOutputSurface() | |
267 { | |
268 Proxy::implThread()->postTask(base::Bind(&ThreadProxy::didLoseOutputSurfaceO
nImplThread, m_implThreadWeakPtr)); | |
269 } | |
270 | |
271 void ThreadProxy::setNeedsAnimate() | 266 void ThreadProxy::setNeedsAnimate() |
272 { | 267 { |
273 DCHECK(isMainThread()); | 268 DCHECK(isMainThread()); |
274 if (m_animateRequested) | 269 if (m_animateRequested) |
275 return; | 270 return; |
276 | 271 |
277 TRACE_EVENT0("cc", "ThreadProxy::setNeedsAnimate"); | 272 TRACE_EVENT0("cc", "ThreadProxy::setNeedsAnimate"); |
278 m_animateRequested = true; | 273 m_animateRequested = true; |
279 | 274 |
280 if (m_commitRequestSentToImplThread) | 275 if (m_commitRequestSentToImplThread) |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 } | 1008 } |
1014 | 1009 |
1015 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ
est) | 1010 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ
est) |
1016 { | 1011 { |
1017 DCHECK(isImplThread()); | 1012 DCHECK(isImplThread()); |
1018 request->commitPending = m_schedulerOnImplThread->commitPending(); | 1013 request->commitPending = m_schedulerOnImplThread->commitPending(); |
1019 request->completion.signal(); | 1014 request->completion.signal(); |
1020 } | 1015 } |
1021 | 1016 |
1022 } // namespace cc | 1017 } // namespace cc |
OLD | NEW |