| 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/single_thread_proxy.h" | 5 #include "cc/single_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/draw_quad.h" | 8 #include "cc/draw_quad.h" |
| 9 #include "cc/layer_tree_host.h" | 9 #include "cc/layer_tree_host.h" |
| 10 #include "cc/output_surface.h" | 10 #include "cc/output_surface.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 if (m_rendererInitialized) | 327 if (m_rendererInitialized) |
| 328 m_layerTreeHostImpl->renderer()->doNoOp(); | 328 m_layerTreeHostImpl->renderer()->doNoOp(); |
| 329 } | 329 } |
| 330 } | 330 } |
| 331 | 331 |
| 332 void SingleThreadProxy::onSwapBuffersCompleteOnImplThread() | 332 void SingleThreadProxy::onSwapBuffersCompleteOnImplThread() |
| 333 { | 333 { |
| 334 NOTREACHED(); | 334 NOTREACHED(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 void SingleThreadProxy::onReceivedLatencyInfo(const LatencyInfo& latencyInfo) |
| 338 { |
| 339 m_layerTreeHost->onReceivedLatencyInfo(latencyInfo); |
| 340 } |
| 341 |
| 337 bool SingleThreadProxy::commitAndComposite() | 342 bool SingleThreadProxy::commitAndComposite() |
| 338 { | 343 { |
| 339 DCHECK(Proxy::isMainThread()); | 344 DCHECK(Proxy::isMainThread()); |
| 340 | 345 |
| 341 if (!m_layerTreeHost->initializeRendererIfNeeded()) | 346 if (!m_layerTreeHost->initializeRendererIfNeeded()) |
| 342 return false; | 347 return false; |
| 343 | 348 |
| 344 m_layerTreeHost->contentsTextureManager()->unlinkAndClearEvictedBackings(); | 349 m_layerTreeHost->contentsTextureManager()->unlinkAndClearEvictedBackings(); |
| 345 | 350 |
| 346 scoped_ptr<ResourceUpdateQueue> queue = make_scoped_ptr(new ResourceUpdateQu
eue); | 351 scoped_ptr<ResourceUpdateQueue> queue = make_scoped_ptr(new ResourceUpdateQu
eue); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 m_layerTreeHost->didCommitAndDrawFrame(); | 403 m_layerTreeHost->didCommitAndDrawFrame(); |
| 399 } | 404 } |
| 400 } | 405 } |
| 401 | 406 |
| 402 bool SingleThreadProxy::commitPendingForTesting() | 407 bool SingleThreadProxy::commitPendingForTesting() |
| 403 { | 408 { |
| 404 return false; | 409 return false; |
| 405 } | 410 } |
| 406 | 411 |
| 407 } // namespace cc | 412 } // namespace cc |
| OLD | NEW |