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

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

Issue 1065123002: Mac: Partially enable partial swap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 21178b55977053b4cd7b0abe18923ebe0756ddb3..d5a0c2011f86140c01459f0d57a8f40d1e075855 100644
--- a/content/common/gpu/image_transport_surface_fbo_mac.h
+++ b/content/common/gpu/image_transport_surface_fbo_mac.h
@@ -41,9 +41,13 @@ class ImageTransportSurfaceFBO
// GL texture that was bound has already been deleted by the caller.
virtual void FreeColorBufferStorage() = 0;
- // Swap buffers and return the handle for the surface to send to the browser
- // process to display.
- virtual void SwapBuffers(const gfx::Size& size, float scale_factor) = 0;
+ // Called when the frame size has changed (the buffer may not have been
+ // reallocated, since its size may be rounded).
+ virtual void FrameSizeChanged(
+ const gfx::Size& pixel_size, float scale_factor) = 0;
+
+ // Swap buffers, or post sub-buffer.
+ virtual void SwapBuffers() = 0;
// Indicate that the backbuffer will be written to.
virtual void WillWriteToBackbuffer() = 0;
@@ -103,6 +107,7 @@ class ImageTransportSurfaceFBO
void DestroyFramebuffer();
void AllocateOrResizeFramebuffer(
const gfx::Size& pixel_size, float scale_factor);
+ bool SwapBuffersInternal();
scoped_ptr<StorageProvider> storage_provider_;
« no previous file with comments | « content/common/gpu/image_transport_surface_calayer_mac.mm ('k') | content/common/gpu/image_transport_surface_fbo_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698