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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor for cleaner state/scrollbar split. 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
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 #include "cc/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 , m_debugState(settings.initialDebugState) 115 , m_debugState(settings.initialDebugState)
116 , m_deviceScaleFactor(1) 116 , m_deviceScaleFactor(1)
117 , m_visible(true) 117 , m_visible(true)
118 , m_contentsTexturesPurged(false) 118 , m_contentsTexturesPurged(false)
119 , m_managedMemoryPolicy(PrioritizedResourceManager::defaultMemoryAllocationL imit(), 119 , m_managedMemoryPolicy(PrioritizedResourceManager::defaultMemoryAllocationL imit(),
120 ManagedMemoryPolicy::CUTOFF_ALLOW_EVERYTHING, 120 ManagedMemoryPolicy::CUTOFF_ALLOW_EVERYTHING,
121 0, 121 0,
122 ManagedMemoryPolicy::CUTOFF_ALLOW_NOTHING) 122 ManagedMemoryPolicy::CUTOFF_ALLOW_NOTHING)
123 , m_needsUpdateDrawProperties(false) 123 , m_needsUpdateDrawProperties(false)
124 , m_pinchGestureActive(false) 124 , m_pinchGestureActive(false)
125 , m_pinchZoomViewport(this)
125 , m_fpsCounter(FrameRateCounter::create(m_proxy->hasImplThread())) 126 , m_fpsCounter(FrameRateCounter::create(m_proxy->hasImplThread()))
126 , m_debugRectHistory(DebugRectHistory::create()) 127 , m_debugRectHistory(DebugRectHistory::create())
127 , m_numImplThreadScrolls(0) 128 , m_numImplThreadScrolls(0)
128 , m_numMainThreadScrolls(0) 129 , m_numMainThreadScrolls(0)
129 , m_cumulativeNumLayersDrawn(0) 130 , m_cumulativeNumLayersDrawn(0)
130 , m_cumulativeNumMissingTiles(0) 131 , m_cumulativeNumMissingTiles(0)
131 , m_lastSentMemoryVisibleBytes(0) 132 , m_lastSentMemoryVisibleBytes(0)
132 , m_lastSentMemoryVisibleAndNearbyBytes(0) 133 , m_lastSentMemoryVisibleAndNearbyBytes(0)
133 , m_lastSentMemoryUseBytes(0) 134 , m_lastSentMemoryUseBytes(0)
134 , m_animationRegistrar(AnimationRegistrar::create()) 135 , m_animationRegistrar(AnimationRegistrar::create())
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 } 1632 }
1632 1633
1633 skia::RefPtr<SkPicture> LayerTreeHostImpl::capturePicture() 1634 skia::RefPtr<SkPicture> LayerTreeHostImpl::capturePicture()
1634 { 1635 {
1635 LayerTreeImpl* tree = pendingTree() ? pendingTree() : activeTree(); 1636 LayerTreeImpl* tree = pendingTree() ? pendingTree() : activeTree();
1636 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer()); 1637 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer());
1637 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); 1638 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>();
1638 } 1639 }
1639 1640
1640 } // namespace cc 1641 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698