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

Unified Diff: content/common/gpu/image_transport_surface_iosurface_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_iosurface_mac.h
diff --git a/content/common/gpu/image_transport_surface_iosurface_mac.h b/content/common/gpu/image_transport_surface_iosurface_mac.h
index ccd0a4cb89cae3ec01c0806a25df1cdf232ddac9..5470ce3a4d371f2d3b6f757404554adf6543fa45 100644
--- a/content/common/gpu/image_transport_surface_iosurface_mac.h
+++ b/content/common/gpu/image_transport_surface_iosurface_mac.h
@@ -23,15 +23,17 @@ class IOSurfaceStorageProvider
// ImageTransportSurfaceFBO::StorageProvider implementation:
virtual gfx::Size GetRoundedSize(gfx::Size size) OVERRIDE;
virtual bool AllocateColorBufferStorage(
- CGLContextObj context, gfx::Size size) OVERRIDE;
+ CGLContextObj context, GLuint texture,
+ gfx::Size pixel_size, float scale_factor) OVERRIDE;
virtual void FreeColorBufferStorage() OVERRIDE;
virtual uint64 GetSurfaceHandle() const OVERRIDE;
+ virtual void WillSwapBuffers() OVERRIDE;
private:
base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
// The id of |io_surface_| or 0 if that's NULL.
- IOSurfaceID io_surface_handle_;
+ IOSurfaceID io_surface_id_;
DISALLOW_COPY_AND_ASSIGN(IOSurfaceStorageProvider);
};

Powered by Google App Engine
This is Rietveld 408576698