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

Unified Diff: content/common/gpu/image_transport_surface.h

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the existing output surface mechanism to feed vsync info into the compositor Created 8 years, 2 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
Index: content/common/gpu/image_transport_surface.h
diff --git a/content/common/gpu/image_transport_surface.h b/content/common/gpu/image_transport_surface.h
index 3a9849ee65dc5de79f957d293b6b8f2edca15425..3fa3e3331cf29b019f937874417e6046a6cc625d 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -114,6 +114,8 @@ class ImageTransportHelper : public IPC::Listener {
void SendAcceleratedSurfaceRelease(
GpuHostMsg_AcceleratedSurfaceRelease_Params params);
void SendResizeView(const gfx::Size& size);
+ void SendUpdateVSyncParameters(
+ base::TimeTicks timebase, base::TimeDelta interval);
// Whether or not we should execute more commands.
void SetScheduled(bool is_scheduled);
@@ -185,6 +187,10 @@ class PassThroughImageTransportSurface
protected:
virtual ~PassThroughImageTransportSurface();
+ // If updated vsync parameters can be determined, send this information to
+ // the browser.
+ virtual void SendVSyncUpdateIfAvailable();
+
private:
scoped_ptr<ImageTransportHelper> helper_;
gfx::Size new_size_;

Powered by Google App Engine
This is Rietveld 408576698