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 "CCSingleThreadProxy.h" | 7 #include "CCSingleThreadProxy.h" |
8 | 8 |
9 #include "CCDrawQuad.h" | 9 #include "CCDrawQuad.h" |
10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
11 #include "CCLayerTreeHost.h" | 11 #include "CCLayerTreeHost.h" |
12 #include "CCTextureUpdateController.h" | 12 #include "CCTextureUpdateController.h" |
13 #include "CCTimer.h" | 13 #include "CCTimer.h" |
14 #include "TraceEvent.h" | 14 #include "TraceEvent.h" |
15 #include <wtf/CurrentTime.h> | 15 #include <wtf/CurrentTime.h> |
16 | 16 |
17 using namespace WTF; | 17 using namespace WTF; |
18 | 18 |
19 namespace WebCore { | 19 namespace cc { |
20 | 20 |
21 PassOwnPtr<CCProxy> CCSingleThreadProxy::create(CCLayerTreeHost* layerTreeHost) | 21 PassOwnPtr<CCProxy> CCSingleThreadProxy::create(CCLayerTreeHost* layerTreeHost) |
22 { | 22 { |
23 return adoptPtr(new CCSingleThreadProxy(layerTreeHost)); | 23 return adoptPtr(new CCSingleThreadProxy(layerTreeHost)); |
24 } | 24 } |
25 | 25 |
26 CCSingleThreadProxy::CCSingleThreadProxy(CCLayerTreeHost* layerTreeHost) | 26 CCSingleThreadProxy::CCSingleThreadProxy(CCLayerTreeHost* layerTreeHost) |
27 : m_layerTreeHost(layerTreeHost) | 27 : m_layerTreeHost(layerTreeHost) |
28 , m_contextLost(false) | 28 , m_contextLost(false) |
29 , m_rendererInitialized(false) | 29 , m_rendererInitialized(false) |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 333 |
334 void CCSingleThreadProxy::didSwapFrame() | 334 void CCSingleThreadProxy::didSwapFrame() |
335 { | 335 { |
336 if (m_nextFrameIsNewlyCommittedFrame) { | 336 if (m_nextFrameIsNewlyCommittedFrame) { |
337 m_nextFrameIsNewlyCommittedFrame = false; | 337 m_nextFrameIsNewlyCommittedFrame = false; |
338 m_layerTreeHost->didCommitAndDrawFrame(); | 338 m_layerTreeHost->didCommitAndDrawFrame(); |
339 } | 339 } |
340 } | 340 } |
341 | 341 |
342 } | 342 } |
OLD | NEW |