| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 virtual ~CCThreadProxy(); | 51 virtual ~CCThreadProxy(); |
| 52 | 52 |
| 53 // CCProxy implementation | 53 // CCProxy implementation |
| 54 virtual bool compositeAndReadback(void *pixels, const IntRect&); | 54 virtual bool compositeAndReadback(void *pixels, const IntRect&); |
| 55 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double duration); | 55 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double duration); |
| 56 virtual GraphicsContext3D* context(); | 56 virtual GraphicsContext3D* context(); |
| 57 virtual void finishAllRendering(); | 57 virtual void finishAllRendering(); |
| 58 virtual bool isStarted() const; | 58 virtual bool isStarted() const; |
| 59 virtual bool initializeContext(); | 59 virtual bool initializeContext(); |
| 60 virtual void setSurfaceReady() OVERRIDE; |
| 60 virtual bool initializeLayerRenderer(); | 61 virtual bool initializeLayerRenderer(); |
| 61 virtual bool recreateContext(); | 62 virtual bool recreateContext(); |
| 62 virtual int compositorIdentifier() const; | 63 virtual int compositorIdentifier() const; |
| 63 virtual const LayerRendererCapabilities& layerRendererCapabilities() const; | 64 virtual const LayerRendererCapabilities& layerRendererCapabilities() const; |
| 64 virtual void loseContext(); | 65 virtual void loseContext(); |
| 65 virtual void setNeedsAnimate(); | 66 virtual void setNeedsAnimate(); |
| 66 virtual void setNeedsCommit(); | 67 virtual void setNeedsCommit(); |
| 67 virtual void setNeedsRedraw(); | 68 virtual void setNeedsRedraw(); |
| 68 virtual bool commitRequested() const; | 69 virtual bool commitRequested() const; |
| 69 virtual void setVisible(bool); | 70 virtual void setVisible(bool); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool success; | 116 bool success; |
| 116 void* pixels; | 117 void* pixels; |
| 117 IntRect rect; | 118 IntRect rect; |
| 118 }; | 119 }; |
| 119 void forceBeginFrameOnImplThread(CCCompletionEvent*); | 120 void forceBeginFrameOnImplThread(CCCompletionEvent*); |
| 120 void beginFrameCompleteOnImplThread(CCCompletionEvent*); | 121 void beginFrameCompleteOnImplThread(CCCompletionEvent*); |
| 121 void requestReadbackOnImplThread(ReadbackRequest*); | 122 void requestReadbackOnImplThread(ReadbackRequest*); |
| 122 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool
useAnchor, float scale, double durationSec); | 123 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool
useAnchor, float scale, double durationSec); |
| 123 void finishAllRenderingOnImplThread(CCCompletionEvent*); | 124 void finishAllRenderingOnImplThread(CCCompletionEvent*); |
| 124 void initializeImplOnImplThread(CCCompletionEvent*); | 125 void initializeImplOnImplThread(CCCompletionEvent*); |
| 126 void setSurfaceReadyOnImplThread(); |
| 125 void initializeContextOnImplThread(GraphicsContext3D*); | 127 void initializeContextOnImplThread(GraphicsContext3D*); |
| 126 void initializeLayerRendererOnImplThread(CCCompletionEvent*, bool* initializ
eSucceeded, LayerRendererCapabilities*); | 128 void initializeLayerRendererOnImplThread(CCCompletionEvent*, bool* initializ
eSucceeded, LayerRendererCapabilities*); |
| 127 void setVisibleOnImplThread(CCCompletionEvent*, bool visible); | 129 void setVisibleOnImplThread(CCCompletionEvent*, bool visible); |
| 128 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); | 130 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); |
| 129 void setFullRootLayerDamageOnImplThread(); | 131 void setFullRootLayerDamageOnImplThread(); |
| 130 void recreateContextOnImplThread(CCCompletionEvent*, GraphicsContext3D*, boo
l* recreateSucceeded, LayerRendererCapabilities*); | 132 void recreateContextOnImplThread(CCCompletionEvent*, GraphicsContext3D*, boo
l* recreateSucceeded, LayerRendererCapabilities*); |
| 131 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); | 133 CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapInternal(bool f
orcedDraw); |
| 132 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); | 134 void forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent*); |
| 133 | 135 |
| 134 // Accessed on main thread only. | 136 // Accessed on main thread only. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 CCCompletionEvent* m_commitCompletionEventOnImplThread; | 170 CCCompletionEvent* m_commitCompletionEventOnImplThread; |
| 169 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread; | 171 OwnPtr<CCTextureUpdater> m_currentTextureUpdaterOnImplThread; |
| 170 | 172 |
| 171 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 173 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 172 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 174 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 } | 177 } |
| 176 | 178 |
| 177 #endif | 179 #endif |
| OLD | NEW |