| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual const LayerRendererCapabilities& layerRendererCapabilities() const; | 63 virtual const LayerRendererCapabilities& layerRendererCapabilities() const; |
| 64 virtual void loseContext(); | 64 virtual void loseContext(); |
| 65 virtual void setNeedsAnimate(); | 65 virtual void setNeedsAnimate(); |
| 66 virtual void setNeedsCommit(); | 66 virtual void setNeedsCommit(); |
| 67 virtual void setNeedsRedraw(); | 67 virtual void setNeedsRedraw(); |
| 68 virtual bool commitRequested() const; | 68 virtual bool commitRequested() const; |
| 69 virtual void setVisible(bool); | 69 virtual void setVisible(bool); |
| 70 virtual void start(); | 70 virtual void start(); |
| 71 virtual void stop(); | 71 virtual void stop(); |
| 72 virtual size_t maxPartialTextureUpdates() const; | 72 virtual size_t maxPartialTextureUpdates() const; |
| 73 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
| 73 | 74 |
| 74 // CCLayerTreeHostImplClient implementation | 75 // CCLayerTreeHostImplClient implementation |
| 75 virtual void didLoseContextOnImplThread(); | 76 virtual void didLoseContextOnImplThread(); |
| 76 virtual void onSwapBuffersCompleteOnImplThread(); | 77 virtual void onSwapBuffersCompleteOnImplThread(); |
| 77 virtual void setNeedsRedrawOnImplThread(); | 78 virtual void setNeedsRedrawOnImplThread(); |
| 78 virtual void setNeedsCommitOnImplThread(); | 79 virtual void setNeedsCommitOnImplThread(); |
| 79 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime); | 80 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime); |
| 80 | 81 |
| 81 // CCSchedulerClient implementation | 82 // CCSchedulerClient implementation |
| 82 virtual bool canDraw(); | 83 virtual bool canDraw(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool
useAnchor, float scale, double durationSec); | 122 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool
useAnchor, float scale, double durationSec); |
| 122 void finishAllRenderingOnImplThread(CCCompletionEvent*); | 123 void finishAllRenderingOnImplThread(CCCompletionEvent*); |
| 123 void initializeImplOnImplThread(CCCompletionEvent*); | 124 void initializeImplOnImplThread(CCCompletionEvent*); |
| 124 void initializeContextOnImplThread(GraphicsContext3D*); | 125 void initializeContextOnImplThread(GraphicsContext3D*); |
| 125 void initializeLayerRendererOnImplThread(CCCompletionEvent*, bool* initializ
eSucceeded, LayerRendererCapabilities*); | 126 void initializeLayerRendererOnImplThread(CCCompletionEvent*, bool* initializ
eSucceeded, LayerRendererCapabilities*); |
| 126 void setVisibleOnImplThread(CCCompletionEvent*, bool visible); | 127 void setVisibleOnImplThread(CCCompletionEvent*, bool visible); |
| 127 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); | 128 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); |
| 128 void setFullRootLayerDamageOnImplThread(); | 129 void setFullRootLayerDamageOnImplThread(); |
| 129 void recreateContextOnImplThread(CCCompletionEvent*, GraphicsContext3D*, boo
l* recreateSucceeded, LayerRendererCapabilities*); | 130 void recreateContextOnImplThread(CCCompletionEvent*, GraphicsContext3D*, boo
l* recreateSucceeded, LayerRendererCapabilities*); |
| 130 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); | 131 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); |
| 132 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); |
| 131 | 133 |
| 132 // Accessed on main thread only. | 134 // Accessed on main thread only. |
| 133 bool m_animateRequested; | 135 bool m_animateRequested; |
| 134 bool m_commitRequested; | 136 bool m_commitRequested; |
| 135 bool m_contextLost; | 137 bool m_contextLost; |
| 136 OwnPtr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer; | 138 OwnPtr<CCThreadProxyContextRecreationTimer> m_contextRecreationTimer; |
| 137 CCLayerTreeHost* m_layerTreeHost; | 139 CCLayerTreeHost* m_layerTreeHost; |
| 138 int m_compositorIdentifier; | 140 int m_compositorIdentifier; |
| 139 bool m_layerRendererInitialized; | 141 bool m_layerRendererInitialized; |
| 140 LayerRendererCapabilities m_layerRendererCapabilitiesMainThreadCopy; | 142 LayerRendererCapabilities m_layerRendererCapabilitiesMainThreadCopy; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 166 CCCompletionEvent* m_commitCompletionEventOnImplThread; | 168 CCCompletionEvent* m_commitCompletionEventOnImplThread; |
| 167 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread; | 169 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread; |
| 168 | 170 |
| 169 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 171 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 170 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 172 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 } | 175 } |
| 174 | 176 |
| 175 #endif | 177 #endif |
| OLD | NEW |