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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11958004: Make new-style page scale work on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Delete maxScrollOffsetChangedByDeviceScaleFactor test 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
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | cc/layer_tree_host_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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void setPageScaleDelta(float); 276 void setPageScaleDelta(float);
277 void updateMaxScrollOffset(); 277 void updateMaxScrollOffset();
278 void trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, const LayerList& re nderSurfaceLayerList); 278 void trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, const LayerList& re nderSurfaceLayerList);
279 279
280 // Returns false if the frame should not be displayed. This function should 280 // Returns false if the frame should not be displayed. This function should
281 // only be called from prepareToDraw, as didDrawAllLayers must be called 281 // only be called from prepareToDraw, as didDrawAllLayers must be called
282 // if this helper function is called. 282 // if this helper function is called.
283 bool calculateRenderPasses(FrameData&); 283 bool calculateRenderPasses(FrameData&);
284 void animateLayersRecursive(LayerImpl*, base::TimeTicks monotonicTime, base: :Time wallClockTime, AnimationEventsVector*, bool& didAnimate, bool& needsAnimat eLayers); 284 void animateLayersRecursive(LayerImpl*, base::TimeTicks monotonicTime, base: :Time wallClockTime, AnimationEventsVector*, bool& didAnimate, bool& needsAnimat eLayers);
285 void setBackgroundTickingEnabled(bool); 285 void setBackgroundTickingEnabled(bool);
286 gfx::Size contentSize() const;
287 286
288 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); 287 void sendDidLoseOutputSurfaceRecursive(LayerImpl*);
289 void clearRenderSurfaces(); 288 void clearRenderSurfaces();
290 bool ensureRenderSurfaceLayerList(); 289 bool ensureRenderSurfaceLayerList();
291 void clearCurrentlyScrollingLayer(); 290 void clearCurrentlyScrollingLayer();
292 291
293 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); 292 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime);
294 293
295 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; 294 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const;
296 295
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 size_t m_lastSentMemoryUseBytes; 339 size_t m_lastSentMemoryUseBytes;
341 340
342 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 341 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
343 342
344 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 343 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
345 }; 344 };
346 345
347 } // namespace cc 346 } // namespace cc
348 347
349 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 348 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698