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

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

Issue 347653005: Make cross-process CALayers work on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@image_transport_1
Patch Set: Incorporate review feedback Created 6 years, 6 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_fbo_mac.h
diff --git a/content/common/gpu/image_transport_surface_fbo_mac.h b/content/common/gpu/image_transport_surface_fbo_mac.h
index 1302cfe51bc1d39cefc82bc7dc69038b246349f3..3587e21b0b3a86f84d7d6f26843a479609bf6915 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,

Powered by Google App Engine
This is Rietveld 408576698