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_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 size_t renderPassListBegin(const RenderPassList&) const { return 0; } | 235 size_t renderPassListBegin(const RenderPassList&) const { return 0; } |
236 size_t renderPassListEnd(const RenderPassList& list) const { return list
.size(); } | 236 size_t renderPassListEnd(const RenderPassList& list) const { return list
.size(); } |
237 size_t renderPassListNext(size_t it) const { return it + 1; } | 237 size_t renderPassListNext(size_t it) const { return it + 1; } |
238 }; | 238 }; |
239 | 239 |
240 template<typename RenderPassCuller> | 240 template<typename RenderPassCuller> |
241 static void removeRenderPasses(RenderPassCuller, FrameData&); | 241 static void removeRenderPasses(RenderPassCuller, FrameData&); |
242 | 242 |
243 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
tal_page_scale_factor(); } | 243 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to
tal_page_scale_factor(); } |
244 | 244 |
245 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp
ort; } | 245 PinchZoomViewport& pinchZoomViewport() { return m_pinchZoomViewport; } |
246 | 246 |
247 skia::RefPtr<SkPicture> capturePicture(); | 247 skia::RefPtr<SkPicture> capturePicture(); |
248 | 248 |
249 bool pinchGestureActive() const { return m_pinchGestureActive; } | 249 bool pinchGestureActive() const { return m_pinchGestureActive; } |
250 | 250 |
251 protected: | 251 protected: |
252 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); | 252 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*
); |
253 void activatePendingTree(); | 253 void activatePendingTree(); |
254 | 254 |
255 // Virtual for testing. | 255 // Virtual for testing. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 size_t m_lastSentMemoryUseBytes; | 340 size_t m_lastSentMemoryUseBytes; |
341 | 341 |
342 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 342 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
343 | 343 |
344 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 344 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
345 }; | 345 }; |
346 | 346 |
347 } // namespace cc | 347 } // namespace cc |
348 | 348 |
349 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 349 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |