| 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 #ifndef CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
| 6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_h |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // CCLayerTreeHost->CCProxy callback interface. | 35 // CCLayerTreeHost->CCProxy callback interface. |
| 36 class CCLayerTreeHostImplClient { | 36 class CCLayerTreeHostImplClient { |
| 37 public: | 37 public: |
| 38 virtual void didLoseContextOnImplThread() = 0; | 38 virtual void didLoseContextOnImplThread() = 0; |
| 39 virtual void onSwapBuffersCompleteOnImplThread() = 0; | 39 virtual void onSwapBuffersCompleteOnImplThread() = 0; |
| 40 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) = 0; | 40 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) = 0; |
| 41 virtual void onCanDrawStateChanged(bool canDraw) = 0; | 41 virtual void onCanDrawStateChanged(bool canDraw) = 0; |
| 42 virtual void setNeedsRedrawOnImplThread() = 0; | 42 virtual void setNeedsRedrawOnImplThread() = 0; |
| 43 virtual void setNeedsCommitOnImplThread() = 0; | 43 virtual void setNeedsCommitOnImplThread() = 0; |
| 44 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) = 0; | 44 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) = 0; |
| 45 virtual void releaseContentsTexturesOnImplThread() = 0; | 45 virtual void releaseContentsTexturesOnImplThread() = 0; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 // CCLayerTreeHostImpl owns the CCLayerImpl tree as well as associated rendering
state | 48 // CCLayerTreeHostImpl owns the CCLayerImpl tree as well as associated rendering
state |
| 49 class CCLayerTreeHostImpl : public CCInputHandlerClient, | 49 class CCLayerTreeHostImpl : public CCInputHandlerClient, |
| 50 public CCRendererClient, | 50 public CCRendererClient, |
| 51 public WebKit::WebCompositorOutputSurfaceClient { | 51 public WebKit::WebCompositorOutputSurfaceClient { |
| 52 typedef std::vector<CCLayerImpl*> CCLayerList; | 52 typedef std::vector<CCLayerImpl*> CCLayerList; |
| 53 | 53 |
| 54 public: | 54 public: |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 size_t m_numImplThreadScrolls; | 297 size_t m_numImplThreadScrolls; |
| 298 size_t m_numMainThreadScrolls; | 298 size_t m_numMainThreadScrolls; |
| 299 | 299 |
| 300 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); | 300 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 #endif | 305 #endif |
| OLD | NEW |