| 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 CCLayerTreeHost_h | 5 #ifndef CCLayerTreeHost_h |
| 6 #define CCLayerTreeHost_h | 6 #define CCLayerTreeHost_h |
| 7 | 7 |
| 8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCGraphicsContext.h" | 9 #include "CCGraphicsContext.h" |
| 10 #include "CCLayerTreeHostClient.h" | 10 #include "CCLayerTreeHostClient.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 // Composites and attempts to read back the result into the provided | 127 // Composites and attempts to read back the result into the provided |
| 128 // buffer. If it wasn't possible, e.g. due to context lost, will return | 128 // buffer. If it wasn't possible, e.g. due to context lost, will return |
| 129 // false. | 129 // false. |
| 130 bool compositeAndReadback(void *pixels, const IntRect&); | 130 bool compositeAndReadback(void *pixels, const IntRect&); |
| 131 | 131 |
| 132 void finishAllRendering(); | 132 void finishAllRendering(); |
| 133 | 133 |
| 134 int commitNumber() const { return m_commitNumber; } | 134 int commitNumber() const { return m_commitNumber; } |
| 135 | 135 |
| 136 void renderingStats(CCRenderingStats&) const; | 136 void renderingStats(CCRenderingStats*) const; |
| 137 | 137 |
| 138 const RendererCapabilities& rendererCapabilities() const; | 138 const RendererCapabilities& rendererCapabilities() const; |
| 139 | 139 |
| 140 // Test only hook | 140 // Test only hook |
| 141 void loseContext(int numTimes); | 141 void loseContext(int numTimes); |
| 142 | 142 |
| 143 void setNeedsAnimate(); | 143 void setNeedsAnimate(); |
| 144 // virtual for testing | 144 // virtual for testing |
| 145 virtual void setNeedsCommit(); | 145 virtual void setNeedsCommit(); |
| 146 void setNeedsRedraw(); | 146 void setNeedsRedraw(); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; | 274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; |
| 275 TextureList m_deleteTextureAfterCommitList; | 275 TextureList m_deleteTextureAfterCommitList; |
| 276 size_t m_partialTextureUpdateRequests; | 276 size_t m_partialTextureUpdateRequests; |
| 277 | 277 |
| 278 static bool s_needsFilterContext; | 278 static bool s_needsFilterContext; |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 } | 281 } |
| 282 | 282 |
| 283 #endif | 283 #endif |
| OLD | NEW |