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

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: don't reset timing history 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 {}
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 7917 matching lines...) Expand 10 before | Expand all | Expand 10 after
8078 // Hold an unowned pointer to the output surface to use for mock expectations. 8079 // Hold an unowned pointer to the output surface to use for mock expectations.
8079 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); 8080 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get();
8080 8081
8081 CreateHostImpl(DefaultSettings(), output_surface.Pass()); 8082 CreateHostImpl(DefaultSettings(), output_surface.Pass());
8082 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); 8083 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1);
8083 host_impl_->BeginCommit(); 8084 host_impl_->BeginCommit();
8084 } 8085 }
8085 8086
8086 } // namespace 8087 } // namespace
8087 } // namespace cc 8088 } // 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