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

Unified Diff: ui/surface/accelerated_surface_win.cc

Issue 10825406: Revert 151932 (caused gpu_throughput_tests to start failing on Mac GPU bots) - Hook up Mac OSX VSyn… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/accelerated_surface_win.cc
===================================================================
--- ui/surface/accelerated_surface_win.cc (revision 151981)
+++ ui/surface/accelerated_surface_win.cc (working copy)
@@ -857,7 +857,7 @@
if (GetPresentationStats(&timebase, &numerator, &denominator) &&
numerator > 0 && denominator > 0) {
int64 interval_micros =
- 1000000 * static_cast<int64>(numerator) / denominator;
+ static_cast<int64>(1000000 * numerator) / denominator;
interval = base::TimeDelta::FromMicroseconds(interval_micros);
}
scoped_completion_runner.Release();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698