Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: cc/CCSingleThreadProxy.cpp

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCSingleThreadProxy.h ('k') | cc/CCTextureUpdateControllerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 WebCore {
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_compositorIdentifier(-1)
30 , m_rendererInitialized(false) 29 , m_rendererInitialized(false)
31 , m_nextFrameIsNewlyCommittedFrame(false) 30 , m_nextFrameIsNewlyCommittedFrame(false)
32 { 31 {
33 TRACE_EVENT0("cc", "CCSingleThreadProxy::CCSingleThreadProxy"); 32 TRACE_EVENT0("cc", "CCSingleThreadProxy::CCSingleThreadProxy");
34 ASSERT(CCProxy::isMainThread()); 33 ASSERT(CCProxy::isMainThread());
35 } 34 }
36 35
37 void CCSingleThreadProxy::start() 36 void CCSingleThreadProxy::start()
38 { 37 {
39 DebugScopedSetImplThread impl; 38 DebugScopedSetImplThread impl;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 330
332 void CCSingleThreadProxy::didSwapFrame() 331 void CCSingleThreadProxy::didSwapFrame()
333 { 332 {
334 if (m_nextFrameIsNewlyCommittedFrame) { 333 if (m_nextFrameIsNewlyCommittedFrame) {
335 m_nextFrameIsNewlyCommittedFrame = false; 334 m_nextFrameIsNewlyCommittedFrame = false;
336 m_layerTreeHost->didCommitAndDrawFrame(); 335 m_layerTreeHost->didCommitAndDrawFrame();
337 } 336 }
338 } 337 }
339 338
340 } 339 }
OLDNEW
« no previous file with comments | « cc/CCSingleThreadProxy.h ('k') | cc/CCTextureUpdateControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698