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

Unified Diff: content/common/gpu/image_transport_surface_iosurface_mac.cc

Issue 505053002: Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Clean up timer logic Created 6 years, 4 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
« no previous file with comments | « content/common/gpu/image_transport_surface_iosurface_mac.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_iosurface_mac.cc
diff --git a/content/common/gpu/image_transport_surface_iosurface_mac.cc b/content/common/gpu/image_transport_surface_iosurface_mac.cc
index cbae4a2612535fddbfa8dfaef2f01a5a1254b5e1..6181789399d68cf9b0e13a3e38a2a3586f5deef9 100644
--- a/content/common/gpu/image_transport_surface_iosurface_mac.cc
+++ b/content/common/gpu/image_transport_surface_iosurface_mac.cc
@@ -105,11 +105,10 @@ void IOSurfaceStorageProvider::FreeColorBufferStorage() {
io_surface_id_ = 0;
}
-uint64 IOSurfaceStorageProvider::GetSurfaceHandle() const {
- return SurfaceHandleFromIOSurfaceID(io_surface_id_);
+void IOSurfaceStorageProvider::DiscardBackbuffer() {
}
-void IOSurfaceStorageProvider::WillSwapBuffers() {
+uint64 IOSurfaceStorageProvider::SwapBuffersAndGetSurfaceHandle() {
// The browser compositor will throttle itself, so we are free to unblock the
// context immediately. Make sure that the browser is doing its throttling
// appropriately by ensuring that the previous swap was acknowledged before
@@ -117,6 +116,8 @@ void IOSurfaceStorageProvider::WillSwapBuffers() {
DCHECK(pending_swapped_surfaces_.empty());
pending_swapped_surfaces_.push_back(io_surface_);
transport_surface_->UnblockContextAfterPendingSwap();
+
+ return SurfaceHandleFromIOSurfaceID(io_surface_id_);
}
void IOSurfaceStorageProvider::CanFreeSwappedBuffer() {
« no previous file with comments | « content/common/gpu/image_transport_surface_iosurface_mac.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698