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

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1213653005: Revert of cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: Created 5 years, 5 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 | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
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 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void PostAnimationEventsToMainThreadOnImplThread( 141 void PostAnimationEventsToMainThreadOnImplThread(
142 scoped_ptr<AnimationEventsVector> events) override {} 142 scoped_ptr<AnimationEventsVector> events) override {}
143 bool IsInsideDraw() override { return false; } 143 bool IsInsideDraw() override { return false; }
144 void RenewTreePriority() override {} 144 void RenewTreePriority() override {}
145 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 145 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
146 base::TimeDelta delay) override { 146 base::TimeDelta delay) override {
147 animation_task_ = task; 147 animation_task_ = task;
148 requested_animation_delay_ = delay; 148 requested_animation_delay_ = delay;
149 } 149 }
150 void DidActivateSyncTree() override {} 150 void DidActivateSyncTree() override {}
151 void WillPrepareTiles() override {}
152 void DidPrepareTiles() override {} 151 void DidPrepareTiles() override {}
153 void DidCompletePageScaleAnimationOnImplThread() override { 152 void DidCompletePageScaleAnimationOnImplThread() override {
154 did_complete_page_scale_animation_ = true; 153 did_complete_page_scale_animation_ = true;
155 } 154 }
156 void OnDrawForOutputSurface() override {} 155 void OnDrawForOutputSurface() override {}
157 void PostFrameTimingEventsOnImplThread( 156 void PostFrameTimingEventsOnImplThread(
158 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 157 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
159 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) 158 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
160 override {} 159 override {}
161 160
(...skipping 7809 matching lines...) Expand 10 before | Expand all | Expand 10 after
7971 // Hold an unowned pointer to the output surface to use for mock expectations. 7970 // Hold an unowned pointer to the output surface to use for mock expectations.
7972 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); 7971 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get();
7973 7972
7974 CreateHostImpl(DefaultSettings(), output_surface.Pass()); 7973 CreateHostImpl(DefaultSettings(), output_surface.Pass());
7975 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); 7974 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1);
7976 host_impl_->BeginCommit(); 7975 host_impl_->BeginCommit();
7977 } 7976 }
7978 7977
7979 } // namespace 7978 } // namespace
7980 } // namespace cc 7979 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698