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

Side by Side Diff: ui/aura/bench/bench_main.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/aura/root_window.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/icu_util.h" 8 #include "base/i18n/icu_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } else { 115 } else {
116 Draw(); 116 Draw();
117 } 117 }
118 } 118 }
119 119
120 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE {} 120 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE {}
121 121
122 virtual void OnCompositingLockStateChanged( 122 virtual void OnCompositingLockStateChanged(
123 Compositor* compositor) OVERRIDE {} 123 Compositor* compositor) OVERRIDE {}
124 124
125 virtual void OnReceivedLatencyInfo(Compositor*,
126 const cc::LatencyInfo&) OVERRIDE {}
127
125 virtual void Draw() {} 128 virtual void Draw() {}
126 129
127 int frames() const { return frames_; } 130 int frames() const { return frames_; }
128 131
129 private: 132 private:
130 TimeTicks start_time_; 133 TimeTicks start_time_;
131 int frames_; 134 int frames_;
132 int max_frames_; 135 int max_frames_;
133 136
134 DISALLOW_COPY_AND_ASSIGN(BenchCompositorObserver); 137 DISALLOW_COPY_AND_ASSIGN(BenchCompositorObserver);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 356
354 root_window->ShowRootWindow(); 357 root_window->ShowRootWindow();
355 MessageLoopForUI::current()->Run(); 358 MessageLoopForUI::current()->Run();
356 focus_client.reset(); 359 focus_client.reset();
357 root_window.reset(); 360 root_window.reset();
358 361
359 ui::CompositorTestSupport::Terminate(); 362 ui::CompositorTestSupport::Terminate();
360 363
361 return 0; 364 return 0;
362 } 365 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698