Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11704002: cc: Generate tilings at other scales for impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create tilings during pinch Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer_tree_impl.h » ('j') | cc/picture_layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 size_t renderPassListNext(size_t it) const { return it + 1; } 293 size_t renderPassListNext(size_t it) const { return it + 1; }
294 }; 294 };
295 295
296 template<typename RenderPassCuller> 296 template<typename RenderPassCuller>
297 static void removeRenderPasses(RenderPassCuller, FrameData&); 297 static void removeRenderPasses(RenderPassCuller, FrameData&);
298 298
299 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); } 299 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); }
300 300
301 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; } 301 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; }
302 302
303 bool pinchGestureActive() const { return m_pinchGestureActive; }
304
303 protected: 305 protected:
304 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); 306 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* );
305 void activatePendingTree(); 307 void activatePendingTree();
306 308
307 // Virtual for testing. 309 // Virtual for testing.
308 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); 310 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime);
309 311
310 // Virtual for testing. 312 // Virtual for testing.
311 virtual base::TimeDelta lowFrequencyAnimationInterval() const; 313 virtual base::TimeDelta lowFrequencyAnimationInterval() const;
312 314
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 size_t m_lastSentMemoryUseBytes; 392 size_t m_lastSentMemoryUseBytes;
391 393
392 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 394 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
393 395
394 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
395 }; 397 };
396 398
397 } // namespace cc 399 } // namespace cc
398 400
399 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 401 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_impl.h » ('j') | cc/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698