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 "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 389 |
384 void SingleThreadProxy::didSwapFrame() | 390 void SingleThreadProxy::didSwapFrame() |
385 { | 391 { |
386 if (m_nextFrameIsNewlyCommittedFrame) { | 392 if (m_nextFrameIsNewlyCommittedFrame) { |
387 m_nextFrameIsNewlyCommittedFrame = false; | 393 m_nextFrameIsNewlyCommittedFrame = false; |
388 m_layerTreeHost->didCommitAndDrawFrame(); | 394 m_layerTreeHost->didCommitAndDrawFrame(); |
389 } | 395 } |
390 } | 396 } |
391 | 397 |
392 } | 398 } |
OLD | NEW |