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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 unsigned bestTextureFormat; | 63 unsigned bestTextureFormat; |
64 bool usingPartialSwap; | 64 bool usingPartialSwap; |
65 bool usingAcceleratedPainting; | 65 bool usingAcceleratedPainting; |
66 bool usingSetVisibility; | 66 bool usingSetVisibility; |
67 bool usingSwapCompleteCallback; | 67 bool usingSwapCompleteCallback; |
68 bool usingGpuMemoryManager; | 68 bool usingGpuMemoryManager; |
69 bool usingDiscardBackbuffer; | 69 bool usingDiscardBackbuffer; |
70 bool usingEglImage; | 70 bool usingEglImage; |
71 bool allowPartialTextureUpdates; | 71 bool allowPartialTextureUpdates; |
72 int maxTextureSize; | 72 int maxTextureSize; |
| 73 bool avoidPow2Textures; |
73 }; | 74 }; |
74 | 75 |
75 class CC_EXPORT LayerTreeHost : public RateLimiterClient { | 76 class CC_EXPORT LayerTreeHost : public RateLimiterClient { |
76 public: | 77 public: |
77 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&, scoped_ptr<Thread> implThread); | 78 static scoped_ptr<LayerTreeHost> create(LayerTreeHostClient*, const LayerTre
eSettings&, scoped_ptr<Thread> implThread); |
78 virtual ~LayerTreeHost(); | 79 virtual ~LayerTreeHost(); |
79 | 80 |
80 void setSurfaceReady(); | 81 void setSurfaceReady(); |
81 | 82 |
82 // Returns true if any LayerTreeHost is alive. | 83 // Returns true if any LayerTreeHost is alive. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 275 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
275 | 276 |
276 static bool s_needsFilterContext; | 277 static bool s_needsFilterContext; |
277 | 278 |
278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
279 }; | 280 }; |
280 | 281 |
281 } // namespace cc | 282 } // namespace cc |
282 | 283 |
283 #endif // CC_LAYER_TREE_HOST_H_ | 284 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |