| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/single_thread_proxy.h" | 7 #include "cc/single_thread_proxy.h" |
| 8 | 8 |
| 9 #include "CCDrawQuad.h" | 9 #include "CCDrawQuad.h" |
| 10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 | 225 |
| 226 void SingleThreadProxy::setNeedsRedraw() | 226 void SingleThreadProxy::setNeedsRedraw() |
| 227 { | 227 { |
| 228 // FIXME: Once we move render_widget scheduling into this class, we can | 228 // FIXME: Once we move render_widget scheduling into this class, we can |
| 229 // treat redraw requests more efficiently than commitAndRedraw requests. | 229 // treat redraw requests more efficiently than commitAndRedraw requests. |
| 230 m_layerTreeHostImpl->setFullRootLayerDamage(); | 230 m_layerTreeHostImpl->setFullRootLayerDamage(); |
| 231 setNeedsCommit(); | 231 setNeedsCommit(); |
| 232 } | 232 } |
| 233 | 233 |
| 234 void SingleThreadProxy::setDeferCommits(bool deferCommits) |
| 235 { |
| 236 // Thread-only feature. |
| 237 NOTREACHED(); |
| 238 } |
| 239 |
| 234 bool SingleThreadProxy::commitRequested() const | 240 bool SingleThreadProxy::commitRequested() const |
| 235 { | 241 { |
| 236 return false; | 242 return false; |
| 237 } | 243 } |
| 238 | 244 |
| 239 void SingleThreadProxy::didAddAnimation() | 245 void SingleThreadProxy::didAddAnimation() |
| 240 { | 246 { |
| 241 } | 247 } |
| 242 | 248 |
| 243 size_t SingleThreadProxy::maxPartialTextureUpdates() const | 249 size_t SingleThreadProxy::maxPartialTextureUpdates() const |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 379 |
| 374 void SingleThreadProxy::didSwapFrame() | 380 void SingleThreadProxy::didSwapFrame() |
| 375 { | 381 { |
| 376 if (m_nextFrameIsNewlyCommittedFrame) { | 382 if (m_nextFrameIsNewlyCommittedFrame) { |
| 377 m_nextFrameIsNewlyCommittedFrame = false; | 383 m_nextFrameIsNewlyCommittedFrame = false; |
| 378 m_layerTreeHost->didCommitAndDrawFrame(); | 384 m_layerTreeHost->didCommitAndDrawFrame(); |
| 379 } | 385 } |
| 380 } | 386 } |
| 381 | 387 |
| 382 } | 388 } |
| OLD | NEW |