diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 01:10:30 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 01:10:30 +0000 |
commit | dc6c55257f665c63e3fd10fa3610bd097ec1e880 (patch) | |
tree | e95da14a21214e73afc64a29246177d6d7e23347 /cc/scrollbar_layer.cc | |
parent | 5016a9dde9a77b4801bf4126317ab2a271be0768 (diff) | |
download | chromium_src-dc6c55257f665c63e3fd10fa3610bd097ec1e880.zip chromium_src-dc6c55257f665c63e3fd10fa3610bd097ec1e880.tar.gz chromium_src-dc6c55257f665c63e3fd10fa3610bd097ec1e880.tar.bz2 |
cc: Avoid expensive RenderingStats collection.
When --enable-gpu-benchmarking is not present, don't do expensive
steps in the benchmark collection (meaning don't call
base::TimeTicks::Now()).
BUG=170735
NOTRY=true
Depends on: https://bugs.webkit.org/show_bug.cgi?id=108358
Review URL: https://chromiumcodereview.appspot.com/12095053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scrollbar_layer.cc')
-rw-r--r-- | cc/scrollbar_layer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/scrollbar_layer.cc b/cc/scrollbar_layer.cc index 2b2ec21..c3e1640 100644 --- a/cc/scrollbar_layer.cc +++ b/cc/scrollbar_layer.cc @@ -248,7 +248,7 @@ void ScrollbarLayer::createUpdaterIfNeeded() m_thumb = m_thumbUpdater->createResource(layerTreeHost()->contentsTextureManager()); } -void ScrollbarLayer::updatePart(CachingBitmapContentLayerUpdater* painter, LayerUpdater::Resource* resource, const gfx::Rect& rect, ResourceUpdateQueue& queue, RenderingStats& stats) +void ScrollbarLayer::updatePart(CachingBitmapContentLayerUpdater* painter, LayerUpdater::Resource* resource, const gfx::Rect& rect, ResourceUpdateQueue& queue, RenderingStats* stats) { // Skip painting and uploading if there are no invalidations and // we already have valid texture data. @@ -311,7 +311,7 @@ void ScrollbarLayer::setTexturePriorities(const PriorityCalculator&) } } -void ScrollbarLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats& stats) +void ScrollbarLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats* stats) { ContentsScalingLayer::update(queue, occlusion, stats); |