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_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #endif // COMPILER | 40 #endif // COMPILER |
41 | 41 |
42 namespace cc { | 42 namespace cc { |
43 | 43 |
44 class Layer; | 44 class Layer; |
45 class LayerTreeHostImpl; | 45 class LayerTreeHostImpl; |
46 class LayerTreeHostImplClient; | 46 class LayerTreeHostImplClient; |
47 class PrioritizedResourceManager; | 47 class PrioritizedResourceManager; |
48 class ResourceUpdateQueue; | 48 class ResourceUpdateQueue; |
49 class HeadsUpDisplayLayer; | 49 class HeadsUpDisplayLayer; |
| 50 class PinchZoomScrollbarLayer; |
50 class Region; | 51 class Region; |
51 struct ScrollAndScaleSet; | 52 struct ScrollAndScaleSet; |
52 | 53 |
53 | 54 |
54 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost | 55 // Provides information on an Impl's rendering capabilities back to the LayerTre
eHost |
55 struct CC_EXPORT RendererCapabilities { | 56 struct CC_EXPORT RendererCapabilities { |
56 RendererCapabilities(); | 57 RendererCapabilities(); |
57 ~RendererCapabilities(); | 58 ~RendererCapabilities(); |
58 | 59 |
59 GLenum bestTextureFormat; | 60 GLenum bestTextureFormat; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 int m_commitNumber; | 238 int m_commitNumber; |
238 RenderingStats m_renderingStats; | 239 RenderingStats m_renderingStats; |
239 | 240 |
240 bool m_rendererInitialized; | 241 bool m_rendererInitialized; |
241 bool m_outputSurfaceLost; | 242 bool m_outputSurfaceLost; |
242 int m_numTimesRecreateShouldFail; | 243 int m_numTimesRecreateShouldFail; |
243 int m_numFailedRecreateAttempts; | 244 int m_numFailedRecreateAttempts; |
244 | 245 |
245 scoped_refptr<Layer> m_rootLayer; | 246 scoped_refptr<Layer> m_rootLayer; |
246 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer; | 247 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer; |
| 248 scoped_refptr<PinchZoomScrollbarLayer> m_pinchZoomScrollbarVertical; |
| 249 scoped_refptr<PinchZoomScrollbarLayer> m_pinchZoomScrollbarHorizontal; |
247 | 250 |
248 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager; | 251 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager; |
249 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder; | 252 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder; |
250 | 253 |
251 LayerTreeSettings m_settings; | 254 LayerTreeSettings m_settings; |
252 LayerTreeDebugState m_debugState; | 255 LayerTreeDebugState m_debugState; |
253 | 256 |
254 gfx::Size m_layoutViewportSize; | 257 gfx::Size m_layoutViewportSize; |
255 gfx::Size m_deviceViewportSize; | 258 gfx::Size m_deviceViewportSize; |
256 float m_deviceScaleFactor; | 259 float m_deviceScaleFactor; |
(...skipping 15 matching lines...) Expand all Loading... |
272 size_t m_partialTextureUpdateRequests; | 275 size_t m_partialTextureUpdateRequests; |
273 | 276 |
274 static bool s_needsFilterContext; | 277 static bool s_needsFilterContext; |
275 | 278 |
276 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
277 }; | 280 }; |
278 | 281 |
279 } // namespace cc | 282 } // namespace cc |
280 | 283 |
281 #endif // CC_LAYER_TREE_HOST_H_ | 284 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |