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

Side by Side Diff: gpu/perftests/measurements.h

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/perftests/measurements.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef GPU_PERFTESTS_MEASUREMENTS_H_ 5 #ifndef GPU_PERFTESTS_MEASUREMENTS_H_
6 #define GPU_PERFTESTS_MEASUREMENTS_H_ 6 #define GPU_PERFTESTS_MEASUREMENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "gpu/command_buffer/service/gpu_timing.h"
13 #include "ui/gl/gl_bindings.h"
12 14
13 namespace gpu { 15 namespace gpu {
14 class GPUTiming;
15 class GPUTimer;
16 struct Measurement { 16 struct Measurement {
17 Measurement(); 17 Measurement();
18 Measurement(const Measurement& m); 18 Measurement(const Measurement& m);
19 Measurement(const std::string& name, 19 Measurement(const std::string& name,
20 const base::TimeDelta wall_time, 20 const base::TimeDelta wall_time,
21 const base::TimeDelta cpu_time, 21 const base::TimeDelta cpu_time,
22 const base::TimeDelta gpu_time); 22 const base::TimeDelta gpu_time);
23 ~Measurement(); 23 ~Measurement();
24 24
25 void PrintResult() const; 25 void PrintResult() const;
(...skipping 21 matching lines...) Expand all
47 base::TimeTicks cpu_time_start_; 47 base::TimeTicks cpu_time_start_;
48 scoped_ptr<gpu::GPUTimer> gpu_timer_; 48 scoped_ptr<gpu::GPUTimer> gpu_timer_;
49 49
50 base::TimeDelta wall_time_; 50 base::TimeDelta wall_time_;
51 base::TimeDelta cpu_time_; 51 base::TimeDelta cpu_time_;
52 }; 52 };
53 53
54 } // namespace gpu 54 } // namespace gpu
55 55
56 #endif // GPU_PERFTESTS_MEASUREMENTS_H_ 56 #endif // GPU_PERFTESTS_MEASUREMENTS_H_
OLDNEW
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/perftests/measurements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698