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

Side by Side Diff: cc/CCSingleThreadProxy.h

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/CCSharedQuadState.cpp ('k') | cc/CCSingleThreadProxy.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 #ifndef CCSingleThreadProxy_h 5 #ifndef CCSingleThreadProxy_h
6 #define CCSingleThreadProxy_h 6 #define CCSingleThreadProxy_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCLayerTreeHostImpl.h" 9 #include "CCLayerTreeHostImpl.h"
10 #include "CCProxy.h" 10 #include "CCProxy.h"
(...skipping 12 matching lines...) Expand all
23 // CCProxy implementation 23 // CCProxy implementation
24 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; 24 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE;
25 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration) OVERRIDE; 25 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration) OVERRIDE;
26 virtual void finishAllRendering() OVERRIDE; 26 virtual void finishAllRendering() OVERRIDE;
27 virtual bool isStarted() const OVERRIDE; 27 virtual bool isStarted() const OVERRIDE;
28 virtual bool initializeContext() OVERRIDE; 28 virtual bool initializeContext() OVERRIDE;
29 virtual void setSurfaceReady() OVERRIDE; 29 virtual void setSurfaceReady() OVERRIDE;
30 virtual void setVisible(bool) OVERRIDE; 30 virtual void setVisible(bool) OVERRIDE;
31 virtual bool initializeRenderer() OVERRIDE; 31 virtual bool initializeRenderer() OVERRIDE;
32 virtual bool recreateContext() OVERRIDE; 32 virtual bool recreateContext() OVERRIDE;
33 virtual int compositorIdentifier() const OVERRIDE { return m_compositorIdent ifier; }
34 virtual void implSideRenderingStats(CCRenderingStats&) OVERRIDE; 33 virtual void implSideRenderingStats(CCRenderingStats&) OVERRIDE;
35 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; 34 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
36 virtual void loseContext() OVERRIDE; 35 virtual void loseContext() OVERRIDE;
37 virtual void setNeedsAnimate() OVERRIDE; 36 virtual void setNeedsAnimate() OVERRIDE;
38 virtual void setNeedsCommit() OVERRIDE; 37 virtual void setNeedsCommit() OVERRIDE;
39 virtual void setNeedsRedraw() OVERRIDE; 38 virtual void setNeedsRedraw() OVERRIDE;
40 virtual bool commitRequested() const OVERRIDE; 39 virtual bool commitRequested() const OVERRIDE;
41 virtual void didAddAnimation() OVERRIDE; 40 virtual void didAddAnimation() OVERRIDE;
42 virtual void start() OVERRIDE; 41 virtual void start() OVERRIDE;
43 virtual void stop() OVERRIDE; 42 virtual void stop() OVERRIDE;
(...skipping 17 matching lines...) Expand all
61 explicit CCSingleThreadProxy(CCLayerTreeHost*); 60 explicit CCSingleThreadProxy(CCLayerTreeHost*);
62 61
63 bool commitAndComposite(); 62 bool commitAndComposite();
64 void doCommit(CCTextureUpdateQueue&); 63 void doCommit(CCTextureUpdateQueue&);
65 bool doComposite(); 64 bool doComposite();
66 void didSwapFrame(); 65 void didSwapFrame();
67 66
68 // Accessed on main thread only. 67 // Accessed on main thread only.
69 CCLayerTreeHost* m_layerTreeHost; 68 CCLayerTreeHost* m_layerTreeHost;
70 bool m_contextLost; 69 bool m_contextLost;
71 int m_compositorIdentifier;
72 70
73 // Holds on to the context between initializeContext() and initializeRendere r() calls. Shouldn't 71 // Holds on to the context between initializeContext() and initializeRendere r() calls. Shouldn't
74 // be used for anything else. 72 // be used for anything else.
75 OwnPtr<CCGraphicsContext> m_contextBeforeInitialization; 73 OwnPtr<CCGraphicsContext> m_contextBeforeInitialization;
76 74
77 // Used on the CCThread, but checked on main thread during initialization/sh utdown. 75 // Used on the CCThread, but checked on main thread during initialization/sh utdown.
78 OwnPtr<CCLayerTreeHostImpl> m_layerTreeHostImpl; 76 OwnPtr<CCLayerTreeHostImpl> m_layerTreeHostImpl;
79 bool m_rendererInitialized; 77 bool m_rendererInitialized;
80 RendererCapabilities m_RendererCapabilitiesForMainThread; 78 RendererCapabilities m_RendererCapabilitiesForMainThread;
81 79
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // satisfy assertion checks 121 // satisfy assertion checks
124 class DebugScopedSetImplThreadAndMainThreadBlocked { 122 class DebugScopedSetImplThreadAndMainThreadBlocked {
125 private: 123 private:
126 DebugScopedSetImplThread m_implThread; 124 DebugScopedSetImplThread m_implThread;
127 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; 125 DebugScopedSetMainThreadBlocked m_mainThreadBlocked;
128 }; 126 };
129 127
130 } // namespace WebCore 128 } // namespace WebCore
131 129
132 #endif 130 #endif
OLDNEW
« no previous file with comments | « cc/CCSharedQuadState.cpp ('k') | cc/CCSingleThreadProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698