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" | |
6 | |
7 #include "cc/single_thread_proxy.h" | 5 #include "cc/single_thread_proxy.h" |
8 | 6 |
9 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
10 #include "cc/draw_quad.h" | 8 #include "cc/draw_quad.h" |
11 #include "cc/graphics_context.h" | 9 #include "cc/graphics_context.h" |
12 #include "cc/layer_tree_host.h" | 10 #include "cc/layer_tree_host.h" |
13 #include "cc/resource_update_controller.h" | 11 #include "cc/resource_update_controller.h" |
14 #include "cc/thread.h" | 12 #include "cc/thread.h" |
15 | 13 |
16 namespace cc { | 14 namespace cc { |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 392 |
395 void SingleThreadProxy::didSwapFrame() | 393 void SingleThreadProxy::didSwapFrame() |
396 { | 394 { |
397 if (m_nextFrameIsNewlyCommittedFrame) { | 395 if (m_nextFrameIsNewlyCommittedFrame) { |
398 m_nextFrameIsNewlyCommittedFrame = false; | 396 m_nextFrameIsNewlyCommittedFrame = false; |
399 m_layerTreeHost->didCommitAndDrawFrame(); | 397 m_layerTreeHost->didCommitAndDrawFrame(); |
400 } | 398 } |
401 } | 399 } |
402 | 400 |
403 } // namespace cc | 401 } // namespace cc |
OLD | NEW |