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