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

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

Issue 1192663005: cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: rebase 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
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 {}
151 void DidPrepareTiles() override {} 152 void DidPrepareTiles() override {}
152 void DidCompletePageScaleAnimationOnImplThread() override { 153 void DidCompletePageScaleAnimationOnImplThread() override {
153 did_complete_page_scale_animation_ = true; 154 did_complete_page_scale_animation_ = true;
154 } 155 }
155 void OnDrawForOutputSurface() override {} 156 void OnDrawForOutputSurface() override {}
156 void PostFrameTimingEventsOnImplThread( 157 void PostFrameTimingEventsOnImplThread(
157 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 158 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
158 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) 159 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
159 override {} 160 override {}
160 161
(...skipping 7809 matching lines...) Expand 10 before | Expand all | Expand 10 after
7970 // Hold an unowned pointer to the output surface to use for mock expectations. 7971 // Hold an unowned pointer to the output surface to use for mock expectations.
7971 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); 7972 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get();
7972 7973
7973 CreateHostImpl(DefaultSettings(), output_surface.Pass()); 7974 CreateHostImpl(DefaultSettings(), output_surface.Pass());
7974 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); 7975 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1);
7975 host_impl_->BeginCommit(); 7976 host_impl_->BeginCommit();
7976 } 7977 }
7977 7978
7978 } // namespace 7979 } // namespace
7979 } // namespace cc 7980 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698