| 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 CC_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class FrameRateCounter; | 26 class FrameRateCounter; |
| 27 class HeadsUpDisplayLayerImpl; | 27 class HeadsUpDisplayLayerImpl; |
| 28 class LayerImpl; | 28 class LayerImpl; |
| 29 class LayerTreeHostImplTimeSourceAdapter; | 29 class LayerTreeHostImplTimeSourceAdapter; |
| 30 class PageScaleAnimation; | 30 class PageScaleAnimation; |
| 31 class RenderPassDrawQuad; | 31 class RenderPassDrawQuad; |
| 32 class ResourceProvider; | 32 class ResourceProvider; |
| 33 struct RendererCapabilities; | 33 struct RendererCapabilities; |
| 34 struct RenderingStats; | 34 struct RenderingStats; |
| 35 | 35 |
| 36 enum WhichTree { |
| 37 // Note: these must be 0 and 1 because we index with them in various places, |
| 38 // e.g. in Tile::priority_. |
| 39 ACTIVE_TREE = 0, |
| 40 PENDING_TREE = 1 |
| 41 }; |
| 42 |
| 36 // LayerTreeHost->Proxy callback interface. | 43 // LayerTreeHost->Proxy callback interface. |
| 37 class LayerTreeHostImplClient { | 44 class LayerTreeHostImplClient { |
| 38 public: | 45 public: |
| 39 virtual void didLoseContextOnImplThread() = 0; | 46 virtual void didLoseContextOnImplThread() = 0; |
| 40 virtual void onSwapBuffersCompleteOnImplThread() = 0; | 47 virtual void onSwapBuffersCompleteOnImplThread() = 0; |
| 41 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) = 0; | 48 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) = 0; |
| 42 virtual void onCanDrawStateChanged(bool canDraw) = 0; | 49 virtual void onCanDrawStateChanged(bool canDraw) = 0; |
| 43 virtual void setNeedsRedrawOnImplThread() = 0; | 50 virtual void setNeedsRedrawOnImplThread() = 0; |
| 44 virtual void setNeedsCommitOnImplThread() = 0; | 51 virtual void setNeedsCommitOnImplThread() = 0; |
| 45 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) = 0; | 52 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) = 0; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 | 360 |
| 354 size_t m_numImplThreadScrolls; | 361 size_t m_numImplThreadScrolls; |
| 355 size_t m_numMainThreadScrolls; | 362 size_t m_numMainThreadScrolls; |
| 356 | 363 |
| 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 364 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 358 }; | 365 }; |
| 359 | 366 |
| 360 } // namespace cc | 367 } // namespace cc |
| 361 | 368 |
| 362 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 369 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |