diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 03:50:45 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 03:50:45 +0000 |
commit | fec5d3621d2a703a8fd28df5788cf1ed19d03bfe (patch) | |
tree | 0a82cf301f5672ba3c19cb17674aeec4173fb300 /ui/surface/accelerated_surface_win.h | |
parent | 708aac0ea184e9e2c5803c1c2a975238a37cea07 (diff) | |
download | chromium_src-fec5d3621d2a703a8fd28df5788cf1ed19d03bfe.zip chromium_src-fec5d3621d2a703a8fd28df5788cf1ed19d03bfe.tar.gz chromium_src-fec5d3621d2a703a8fd28df5788cf1ed19d03bfe.tar.bz2 |
Windows: AcceleratedSurface present thread periodically polls raster status.
This is to give the threaded compositor a recent time base to work with.
Also use acknowledge with the surrent refresh period for the swap chain.
Moved call to Present to before the spin on the Query since that is unnecessary and allows earlier acknowledgement.
BUG=143854
Review URL: https://chromiumcodereview.appspot.com/10892018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/surface/accelerated_surface_win.h')
-rw-r--r-- | ui/surface/accelerated_surface_win.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/ui/surface/accelerated_surface_win.h b/ui/surface/accelerated_surface_win.h index 1256909..d228249 100644 --- a/ui/surface/accelerated_surface_win.h +++ b/ui/surface/accelerated_surface_win.h @@ -79,19 +79,6 @@ class SURFACE_EXPORT AcceleratedPresenter bool DoRealPresent(HDC dc); void DoReleaseSurface(); - // This gets the timestamp and period of the display's last vsync. - // The period is represented as a ratio which, when divided, will give you - // the interval in seconds. i.e.: - // inteval_in_seconds = interval_numerator / interval_denominator; - // For example, some machines will return an interval_numerator of 1001 - // and an interval_denominator of 60000, resulting in an interval of - // 1001/60000 ~= .016683 seconds - // Note: This function assumes lock_ is acquired. - // Returns true on success. - bool GetPresentationStats(base::TimeTicks* timebase, - uint32* interval_numerator, - uint32* interval_denominator); - // The thread with which this presenter has affinity. PresentThread* const present_thread_; @@ -123,6 +110,8 @@ class SURFACE_EXPORT AcceleratedPresenter // are used so it is possible to represent it to quickly validate the window. base::win::ScopedComPtr<IDirect3DSwapChain9> swap_chain_; + // Whether the window is hidden or has not been presented to since it was + // last hidden. bool hidden_; DISALLOW_COPY_AND_ASSIGN(AcceleratedPresenter); |