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

Issue 10825053: Use DwmGetCompositionTimingInfo to get vsync info on Windows (Closed)

Created:
8 years, 5 months ago by brianderson
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Use DwmGetCompositionTimingInfo to get vsync info on Windows BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150395

Patch Set 1 #

Patch Set 2 : Fix TimeTicks/TimeDelta missmatch #

Patch Set 3 : Fix 64 bit integer type errors #

Patch Set 4 : links in dwmapi hopefully #

Patch Set 5 : Use double precision & initialize cbSize #

Patch Set 6 : Represent refresh rate as a ratio #

Patch Set 7 : Change uint32_t to uint32 #

Total comments: 2

Patch Set 8 : Use vblank time instead of composite time and fix variable names #

Patch Set 9 : Fix whitespace #

Total comments: 16

Patch Set 10 : Elaborate comments and fix pointer formatting #

Total comments: 3

Patch Set 11 : Fix naming conventions. Use QPCValueToMicroseconds. #

Patch Set 12 : Use floats again. #

Patch Set 13 : Rebase on top of commited base/time changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M ui/surface/accelerated_surface_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
M ui/surface/accelerated_surface_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jbates
https://chromiumcodereview.appspot.com/10825053/diff/11003/ui/surface/accelerated_surface_win.cc File ui/surface/accelerated_surface_win.cc (right): https://chromiumcodereview.appspot.com/10825053/diff/11003/ui/surface/accelerated_surface_win.cc#newcode846 ui/surface/accelerated_surface_win.cc:846: return; 2 space indent https://chromiumcodereview.appspot.com/10825053/diff/11003/ui/surface/accelerated_surface_win.h File ui/surface/accelerated_surface_win.h (right): https://chromiumcodereview.appspot.com/10825053/diff/11003/ui/surface/accelerated_surface_win.h#newcode73 ...
8 years, 4 months ago (2012-07-28 01:35:30 UTC) #1
jbates
LGTM I added owners reviewers for base/ and ui/: jar: base/OWNERS sky: ui/OWNERS
8 years, 4 months ago (2012-07-30 18:29:21 UTC) #2
jbates
https://chromiumcodereview.appspot.com/10825053/diff/11/ui/surface/accelerated_surface_win.h File ui/surface/accelerated_surface_win.h (right): https://chromiumcodereview.appspot.com/10825053/diff/11/ui/surface/accelerated_surface_win.h#newcode77 ui/surface/accelerated_surface_win.h:77: void GetPresentationStats(base::TimeTicks *timebase, - comments should explicitly say how ...
8 years, 4 months ago (2012-07-30 18:37:51 UTC) #3
jbates
https://chromiumcodereview.appspot.com/10825053/diff/11/ui/surface/accelerated_surface_win.h File ui/surface/accelerated_surface_win.h (right): https://chromiumcodereview.appspot.com/10825053/diff/11/ui/surface/accelerated_surface_win.h#newcode77 ui/surface/accelerated_surface_win.h:77: void GetPresentationStats(base::TimeTicks *timebase, On 2012/07/30 18:37:51, jbates wrote: > ...
8 years, 4 months ago (2012-07-30 19:26:59 UTC) #4
brianderson
https://chromiumcodereview.appspot.com/10825053/diff/11/base/time.h File base/time.h (right): https://chromiumcodereview.appspot.com/10825053/diff/11/base/time.h#newcode68 base/time.h:68: static TimeDelta FromQPCValue(LONGLONG qpcValue); jar, is it ok that ...
8 years, 4 months ago (2012-07-30 19:38:13 UTC) #5
apatrick_chromium
https://chromiumcodereview.appspot.com/10825053/diff/11/base/time.h File base/time.h (right): https://chromiumcodereview.appspot.com/10825053/diff/11/base/time.h#newcode68 base/time.h:68: static TimeDelta FromQPCValue(LONGLONG qpcValue); Google style is qpc_value. https://chromiumcodereview.appspot.com/10825053/diff/11/base/time.h#newcode516 ...
8 years, 4 months ago (2012-07-30 19:43:31 UTC) #6
brianderson
https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc File base/time_win.cc (right): https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc#newcode455 base/time_win.cc:455: return TimeTicks() + Copied this trick from TimeTicks::HighResNow() a ...
8 years, 4 months ago (2012-07-30 20:16:39 UTC) #7
jar (doing other things)
Please correct nits below before landing... and then... base code LGTM. https://chromiumcodereview.appspot.com/10825053/diff/6009/base/time_win.cc File base/time_win.cc (right): ...
8 years, 4 months ago (2012-07-30 21:31:52 UTC) #8
apatrick_chromium
lgtm
8 years, 4 months ago (2012-07-30 21:36:49 UTC) #9
jar (doing other things)
https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc File base/time_win.cc (right): https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc#newcode417 base/time_win.cc:417: double ticks_per_microsecond_; // 0 indicates QPF failed and we're ...
8 years, 4 months ago (2012-07-30 21:41:33 UTC) #10
brianderson
https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc File base/time_win.cc (right): https://chromiumcodereview.appspot.com/10825053/diff/11/base/time_win.cc#newcode417 base/time_win.cc:417: double ticks_per_microsecond_; // 0 indicates QPF failed and we're ...
8 years, 4 months ago (2012-07-30 22:37:31 UTC) #11
brianderson
Does anyone have any other input regarding float vs double usage here? Double is definitely ...
8 years, 4 months ago (2012-07-31 20:59:55 UTC) #12
nduca
How about making the change as a standalone patch? I think it makes sense but ...
8 years, 4 months ago (2012-07-31 21:08:42 UTC) #13
brianderson
Reverted to using floats. Will make doubles a separate patch.
8 years, 4 months ago (2012-07-31 21:26:03 UTC) #14
sky
ui.gyp LGTM
8 years, 4 months ago (2012-07-31 23:20:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/10825053/18001
8 years, 4 months ago (2012-08-07 18:04:44 UTC) #16
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 21:03:39 UTC) #17
Change committed as 150395

Powered by Google App Engine
This is Rietveld 408576698