| 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 <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void composite(); | 135 void composite(); |
| 136 void scheduleComposite(); | 136 void scheduleComposite(); |
| 137 | 137 |
| 138 // Composites and attempts to read back the result into the provided | 138 // Composites and attempts to read back the result into the provided |
| 139 // buffer. If it wasn't possible, e.g. due to context lost, will return | 139 // buffer. If it wasn't possible, e.g. due to context lost, will return |
| 140 // false. | 140 // false. |
| 141 bool compositeAndReadback(void *pixels, const IntRect&); | 141 bool compositeAndReadback(void *pixels, const IntRect&); |
| 142 | 142 |
| 143 void finishAllRendering(); | 143 void finishAllRendering(); |
| 144 | 144 |
| 145 void setDeferCommits(bool deferCommits); |
| 146 |
| 145 int commitNumber() const { return m_commitNumber; } | 147 int commitNumber() const { return m_commitNumber; } |
| 146 | 148 |
| 147 void renderingStats(RenderingStats*) const; | 149 void renderingStats(RenderingStats*) const; |
| 148 | 150 |
| 149 const RendererCapabilities& rendererCapabilities() const; | 151 const RendererCapabilities& rendererCapabilities() const; |
| 150 | 152 |
| 151 // Test only hook | 153 // Test only hook |
| 152 void loseContext(int numTimes); | 154 void loseContext(int numTimes); |
| 153 | 155 |
| 154 void setNeedsAnimate(); | 156 void setNeedsAnimate(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 size_t m_partialTextureUpdateRequests; | 275 size_t m_partialTextureUpdateRequests; |
| 274 | 276 |
| 275 static bool s_needsFilterContext; | 277 static bool s_needsFilterContext; |
| 276 | 278 |
| 277 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 278 }; | 280 }; |
| 279 | 281 |
| 280 } // namespace cc | 282 } // namespace cc |
| 281 | 283 |
| 282 #endif | 284 #endif |
| OLD | NEW |