| 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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { | 33 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { |
| 34 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 34 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
| 35 } | 35 } |
| 36 }; | 36 }; |
| 37 } // namespace BASE_HASH_NAMESPACE | 37 } // namespace BASE_HASH_NAMESPACE |
| 38 #endif // COMPILER | 38 #endif // COMPILER |
| 39 | 39 |
| 40 namespace cc { | 40 namespace cc { |
| 41 | 41 |
| 42 class FontAtlas; | 42 class FontAtlas; |
| 43 class IntRect; | |
| 44 class Layer; | 43 class Layer; |
| 45 class LayerTreeHostImpl; | 44 class LayerTreeHostImpl; |
| 46 class LayerTreeHostImplClient; | 45 class LayerTreeHostImplClient; |
| 47 class PrioritizedTextureManager; | 46 class PrioritizedTextureManager; |
| 48 class ResourceUpdateQueue; | 47 class ResourceUpdateQueue; |
| 49 class HeadsUpDisplayLayer; | 48 class HeadsUpDisplayLayer; |
| 50 class Region; | 49 class Region; |
| 51 struct ScrollAndScaleSet; | 50 struct ScrollAndScaleSet; |
| 52 | 51 |
| 53 struct LayerTreeSettings { | 52 struct LayerTreeSettings { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 133 |
| 135 LayerTreeHostClient* client() { return m_client; } | 134 LayerTreeHostClient* client() { return m_client; } |
| 136 | 135 |
| 137 // Only used when compositing on the main thread. | 136 // Only used when compositing on the main thread. |
| 138 void composite(); | 137 void composite(); |
| 139 void scheduleComposite(); | 138 void scheduleComposite(); |
| 140 | 139 |
| 141 // Composites and attempts to read back the result into the provided | 140 // Composites and attempts to read back the result into the provided |
| 142 // buffer. If it wasn't possible, e.g. due to context lost, will return | 141 // buffer. If it wasn't possible, e.g. due to context lost, will return |
| 143 // false. | 142 // false. |
| 144 bool compositeAndReadback(void *pixels, const IntRect&); | 143 bool compositeAndReadback(void *pixels, const gfx::Rect&); |
| 145 | 144 |
| 146 void finishAllRendering(); | 145 void finishAllRendering(); |
| 147 | 146 |
| 148 void setDeferCommits(bool deferCommits); | 147 void setDeferCommits(bool deferCommits); |
| 149 | 148 |
| 150 // Test only hook | 149 // Test only hook |
| 151 virtual void didDeferCommit(); | 150 virtual void didDeferCommit(); |
| 152 | 151 |
| 153 int commitNumber() const { return m_commitNumber; } | 152 int commitNumber() const { return m_commitNumber; } |
| 154 | 153 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 size_t m_partialTextureUpdateRequests; | 284 size_t m_partialTextureUpdateRequests; |
| 286 | 285 |
| 287 static bool s_needsFilterContext; | 286 static bool s_needsFilterContext; |
| 288 | 287 |
| 289 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 288 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 290 }; | 289 }; |
| 291 | 290 |
| 292 } // namespace cc | 291 } // namespace cc |
| 293 | 292 |
| 294 #endif | 293 #endif |
| OLD | NEW |