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

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

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/perftests/measurements.h ('k') | gpu/perftests/texture_upload_perftest.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 #include "gpu/perftests/measurements.h" 5 #include "gpu/perftests/measurements.h"
6 6
7 #include "base/logging.h"
8 #include "gpu/command_buffer/service/gpu_timing.h"
9 #include "testing/perf/perf_test.h" 7 #include "testing/perf/perf_test.h"
10 8
11 namespace gpu { 9 namespace gpu {
12 10
13 Measurement::Measurement() : name(), wall_time(), cpu_time(), gpu_time() { 11 Measurement::Measurement() : name(), wall_time(), cpu_time(), gpu_time() {
14 } 12 }
15 Measurement::Measurement(const Measurement& m) 13 Measurement::Measurement(const Measurement& m)
16 : name(m.name), 14 : name(m.name),
17 wall_time(m.wall_time), 15 wall_time(m.wall_time),
18 cpu_time(m.cpu_time), 16 cpu_time(m.cpu_time),
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 gpu_time = gpu_timer_->GetDeltaElapsed(); 90 gpu_time = gpu_timer_->GetDeltaElapsed();
93 } 91 }
94 return Measurement(name, wall_time_, cpu_time_, 92 return Measurement(name, wall_time_, cpu_time_,
95 base::TimeDelta::FromMicroseconds(gpu_time)); 93 base::TimeDelta::FromMicroseconds(gpu_time));
96 } 94 }
97 95
98 MeasurementTimers::~MeasurementTimers() { 96 MeasurementTimers::~MeasurementTimers() {
99 } 97 }
100 98
101 } // namespace gpu 99 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/perftests/measurements.h ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698