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

Unified Diff: ui/gl/gpu_timing_unittest.cc

Issue 1647333002: Fix GPUTiming offset so it is stable within significant digits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Increased fake CPU time in unittest to be greater than 1ms Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gpu_timing.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gpu_timing_unittest.cc
diff --git a/ui/gl/gpu_timing_unittest.cc b/ui/gl/gpu_timing_unittest.cc
index 222fa55612b403e51a1745c23824311a7db17cfb..8af9e26d44186cbd0f3a0646e29bce44e77c8ec4 100644
--- a/ui/gl/gpu_timing_unittest.cc
+++ b/ui/gl/gpu_timing_unittest.cc
@@ -106,7 +106,7 @@ TEST_F(GPUTimingTest, QueryTimeStampTest) {
scoped_refptr<GPUTimingClient> client = CreateGPUTimingClient();
scoped_ptr<GPUTimer> gpu_timer = client->CreateGPUTimer(false);
- const int64_t begin_cpu_time = 123;
+ const int64_t begin_cpu_time = 1230;
const int64_t begin_gl_time = 10 * base::Time::kNanosecondsPerMicrosecond;
const int64_t cpu_gl_offset =
begin_gl_time / base::Time::kNanosecondsPerMicrosecond - begin_cpu_time;
« no previous file with comments | « ui/gl/gpu_timing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698