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

Side by Side Diff: gpu/command_buffer/common/time.h

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More changes based on review comments. Created 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef GPU_COMMAND_BUFFER_COMMON_TIME_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_TIME_H_
6 #define GPU_COMMAND_BUFFER_COMMON_TIME_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_TIME_H_
7 7
8 #if !defined(__native_client__) 8 #if !defined(__native_client__)
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 13
14 inline uint64 MicrosecondsSinceOriginOfTime() { 14 inline uint64 MicrosecondsSinceOriginOfTime() {
15 return (base::TimeTicks::HighResNow() - base::TimeTicks()).InMicroseconds(); 15 return (base::TimeTicks::Now() - base::TimeTicks()).InMicroseconds();
16 } 16 }
17 17
18 } // namespace gpu 18 } // namespace gpu
19 19
20 #else 20 #else
21 21
22 namespace gpu { 22 namespace gpu {
23 23
24 inline uint64 MicrosecondsSinceOriginOfTime() { 24 inline uint64 MicrosecondsSinceOriginOfTime() {
25 return 0; 25 return 0;
26 } 26 }
27 27
28 } // namespace gpu 28 } // namespace gpu
29 29
30 #endif // __native_client__ 30 #endif // __native_client__
31 31
32 #endif // GPU_COMMAND_BUFFER_COMMON_TIME_H_ 32 #endif // GPU_COMMAND_BUFFER_COMMON_TIME_H_
OLDNEW
« no previous file with comments | « content/renderer/skia_benchmarking_extension.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698