| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR
IDE; | 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR
IDE; |
| 172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O
VERRIDE; | 172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O
VERRIDE; |
| 173 virtual bool hasImplThread() const OVERRIDE; | 173 virtual bool hasImplThread() const OVERRIDE; |
| 174 | 174 |
| 175 // TileManagerClient implementation. | 175 // TileManagerClient implementation. |
| 176 virtual void ScheduleManageTiles() OVERRIDE; | 176 virtual void ScheduleManageTiles() OVERRIDE; |
| 177 virtual void ScheduleRedraw() OVERRIDE; | 177 virtual void ScheduleRedraw() OVERRIDE; |
| 178 | 178 |
| 179 // WebCompositorOutputSurfaceClient implementation. | 179 // WebCompositorOutputSurfaceClient implementation. |
| 180 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; | 180 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; |
| 181 virtual void onSendFrameToParentCompositorAck(const WebKit::WebCompositorFra
meAck&) OVERRIDE; |
| 181 | 182 |
| 182 // Implementation | 183 // Implementation |
| 183 bool canDraw(); | 184 bool canDraw(); |
| 184 GraphicsContext* context() const; | 185 GraphicsContext* context() const; |
| 185 | 186 |
| 186 std::string layerTreeAsText() const; | 187 std::string layerTreeAsText() const; |
| 187 | 188 |
| 188 void finishAllRendering(); | 189 void finishAllRendering(); |
| 189 int sourceAnimationFrameNumber() const; | 190 int sourceAnimationFrameNumber() const; |
| 190 | 191 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 size_t m_numMainThreadScrolls; | 381 size_t m_numMainThreadScrolls; |
| 381 | 382 |
| 382 size_t m_cumulativeNumLayersDrawn; | 383 size_t m_cumulativeNumLayersDrawn; |
| 383 | 384 |
| 384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 385 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 385 }; | 386 }; |
| 386 | 387 |
| 387 } // namespace cc | 388 } // namespace cc |
| 388 | 389 |
| 389 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 390 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |