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

Unified Diff: ui/surface/accelerated_surface_win.h

Issue 10820041: Plumb vsync info from AcceleratedPresenter to RenderWidgetHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offset timebase to Now-space 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/gpu/gpu_process_host.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/accelerated_surface_win.h
diff --git a/ui/surface/accelerated_surface_win.h b/ui/surface/accelerated_surface_win.h
index b904e4f6ae6315fb1fdb3e931d6e841320ba13ee..6a19e81ca749e1a76ea68d219e75aa53b05cfc4f 100644
--- a/ui/surface/accelerated_surface_win.h
+++ b/ui/surface/accelerated_surface_win.h
@@ -25,7 +25,9 @@ class Rect;
class SURFACE_EXPORT AcceleratedPresenter
: public base::RefCountedThreadSafe<AcceleratedPresenter> {
public:
- typedef base::Callback<void(bool)> CompletionTaskl;
+ typedef base::Callback<void(bool,
+ base::TimeTicks,
+ base::TimeDelta)> CompletionTask;
explicit AcceleratedPresenter(gfx::NativeWindow window);
@@ -42,7 +44,7 @@ class SURFACE_EXPORT AcceleratedPresenter
void AsyncPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const base::Callback<void(bool)>& completion_task);
+ const CompletionTask& completion_task);
// Schedule the presenter to free all its resources. This can be called on any
// thread.
@@ -71,7 +73,7 @@ class SURFACE_EXPORT AcceleratedPresenter
void DoPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_handle,
- const base::Callback<void(bool)>& completion_task);
+ const CompletionTask& completion_task);
void DoSuspend();
void DoPresent(HDC dc, bool* presented);
bool DoRealPresent(HDC dc);
@@ -85,7 +87,8 @@ class SURFACE_EXPORT AcceleratedPresenter
// and an interval_denominator of 60000, resulting in an interval of
// 1001/60000 ~= .016683 seconds
// Note: This function assumes lock_ is acquired.
- void GetPresentationStats(base::TimeTicks* timebase,
+ // Returns true on success.
+ bool GetPresentationStats(base::TimeTicks* timebase,
uint32* interval_numerator,
uint32* interval_denominator);
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698