summaryrefslogtreecommitdiff
path: root/content/common/gpu/image_transport_surface_fbo_mac.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2014-07-20 18:25:52 -0700
committerBen Murdoch <benm@google.com>2014-07-20 18:25:52 -0700
commit116680a4aac90f2aa7413d9095a592090648e557 (patch)
treef7c6fed0e63d6a2804243d4a31a752dca39fb076 /content/common/gpu/image_transport_surface_fbo_mac.h
parent1f14a4515e04c9ffc9bac4dd1e2f68611626b800 (diff)
downloadchromium_org-116680a4aac90f2aa7413d9095a592090648e557.tar.gz
Merge from Chromium at DEPS revision 284076
This commit was generated by merge_to_master.py. Change-Id: I9a279485b02fe7ceddcd32d992a714ff132e99ae
Diffstat (limited to 'content/common/gpu/image_transport_surface_fbo_mac.h')
-rw-r--r--content/common/gpu/image_transport_surface_fbo_mac.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/common/gpu/image_transport_surface_fbo_mac.h b/content/common/gpu/image_transport_surface_fbo_mac.h
index 1302cfe51b..3587e21b0b 100644
--- a/content/common/gpu/image_transport_surface_fbo_mac.h
+++ b/content/common/gpu/image_transport_surface_fbo_mac.h
@@ -34,7 +34,8 @@ class ImageTransportSurfaceFBO
// Allocate the storage for the color buffer. The specified context is
// current, and there is a texture bound to GL_TEXTURE_RECTANGLE_ARB.
virtual bool AllocateColorBufferStorage(
- CGLContextObj context, gfx::Size size) = 0;
+ CGLContextObj context, GLuint texture,
+ gfx::Size size, float scale_factor) = 0;
// Free the storage allocated in the AllocateColorBufferStorage call. The
// GL texture that was bound has already been deleted by the caller.
@@ -43,6 +44,9 @@ class ImageTransportSurfaceFBO
// Retrieve the handle for the surface to send to the browser process to
// display.
virtual uint64 GetSurfaceHandle() const = 0;
+
+ // Called when a frame is about to be sent to the browser process.
+ virtual void WillSwapBuffers() = 0;
};
ImageTransportSurfaceFBO(StorageProvider* storage_provider,