| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 { | 234 { |
| 235 // Thread-only feature. | 235 // Thread-only feature. |
| 236 NOTREACHED(); | 236 NOTREACHED(); |
| 237 } | 237 } |
| 238 | 238 |
| 239 bool SingleThreadProxy::commitRequested() const | 239 bool SingleThreadProxy::commitRequested() const |
| 240 { | 240 { |
| 241 return false; | 241 return false; |
| 242 } | 242 } |
| 243 | 243 |
| 244 void SingleThreadProxy::didAddAnimation() | |
| 245 { | |
| 246 } | |
| 247 | |
| 248 size_t SingleThreadProxy::maxPartialTextureUpdates() const | 244 size_t SingleThreadProxy::maxPartialTextureUpdates() const |
| 249 { | 245 { |
| 250 return std::numeric_limits<size_t>::max(); | 246 return std::numeric_limits<size_t>::max(); |
| 251 } | 247 } |
| 252 | 248 |
| 253 void SingleThreadProxy::stop() | 249 void SingleThreadProxy::stop() |
| 254 { | 250 { |
| 255 TRACE_EVENT0("cc", "SingleThreadProxy::stop"); | 251 TRACE_EVENT0("cc", "SingleThreadProxy::stop"); |
| 256 DCHECK(Proxy::isMainThread()); | 252 DCHECK(Proxy::isMainThread()); |
| 257 { | 253 { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 390 |
| 395 void SingleThreadProxy::didSwapFrame() | 391 void SingleThreadProxy::didSwapFrame() |
| 396 { | 392 { |
| 397 if (m_nextFrameIsNewlyCommittedFrame) { | 393 if (m_nextFrameIsNewlyCommittedFrame) { |
| 398 m_nextFrameIsNewlyCommittedFrame = false; | 394 m_nextFrameIsNewlyCommittedFrame = false; |
| 399 m_layerTreeHost->didCommitAndDrawFrame(); | 395 m_layerTreeHost->didCommitAndDrawFrame(); |
| 400 } | 396 } |
| 401 } | 397 } |
| 402 | 398 |
| 403 } // namespace cc | 399 } // namespace cc |
| OLD | NEW |