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

Unified Diff: cc/layer_tree_host_impl.h

Issue 11529006: [cc] Fold more update calls into updateDrawProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works, but funky Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index c7f38f664664cf624e971961e784a50221dc08dd..23ef853d1b75389910437f1d40f18a3f1adbd964 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -255,8 +255,6 @@ public:
void renderingStats(RenderingStats*) const;
- void updateRootScrollLayerImplTransform();
-
void sendManagedMemoryStats(
size_t memoryVisibleBytes,
size_t memoryVisibleAndNearbyBytes,
@@ -300,18 +298,12 @@ public:
template<typename RenderPassCuller>
static void removeRenderPasses(RenderPassCuller, FrameData&);
+ // Exposed for testing.
+ float totalPageScaleFactor() const { return m_pinchZoomViewport.totalPageScaleFactor(); }
+
protected:
LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*);
- void animatePageScale(base::TimeTicks monotonicTime);
- void animateScrollbars(base::TimeTicks monotonicTime);
-
- void updateDrawProperties();
-
- // Exposed for testing.
- void calculateRenderSurfaceLayerList(LayerList&);
- void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawProperties = false; }
-
// Virtual for testing.
virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClockTime);
@@ -322,6 +314,12 @@ protected:
Proxy* m_proxy;
private:
+ void animatePageScale(base::TimeTicks monotonicTime);
+ void animateScrollbars(base::TimeTicks monotonicTime);
+
+ void updateDrawProperties();
+ void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawProperties = false; }
+
void computeDoubleTapZoomDeltas(ScrollAndScaleSet* scrollInfo);
void computePinchZoomDeltas(ScrollAndScaleSet* scrollInfo);
void makeScrollAndScaleSet(ScrollAndScaleSet* scrollInfo, gfx::Vector2d scrollOffset, float pageScale);

Powered by Google App Engine
This is Rietveld 408576698