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

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

Issue 347653005: Make cross-process CALayers work on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@image_transport_1
Patch Set: Remove stray test line 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.cc
diff --git a/content/common/gpu/image_transport_surface_fbo_mac.cc b/content/common/gpu/image_transport_surface_fbo_mac.cc
index db70512e2eaad0136d6c43283a0079c9df0e668d..f2138af0c0097336d431f08415189e845af31a89 100644
--- a/content/common/gpu/image_transport_surface_fbo_mac.cc
+++ b/content/common/gpu/image_transport_surface_fbo_mac.cc
@@ -135,6 +135,8 @@ bool ImageTransportSurfaceFBO::SwapBuffers() {
DCHECK(!is_swap_buffers_pending_);
is_swap_buffers_pending_ = true;
+
+ storage_provider_->WillSwapBuffers();
return true;
}
@@ -158,6 +160,8 @@ bool ImageTransportSurfaceFBO::PostSubBuffer(
DCHECK(!is_swap_buffers_pending_);
is_swap_buffers_pending_ = true;
+
+ storage_provider_->WillSwapBuffers();
return true;
}
@@ -322,7 +326,7 @@ void ImageTransportSurfaceFBO::CreateFramebuffer() {
bool allocated_color_buffer = storage_provider_->AllocateColorBufferStorage(
static_cast<CGLContextObj>(context_->GetHandle()),
- rounded_size_);
+ rounded_size_, scale_factor_);
if (!allocated_color_buffer) {
DLOG(ERROR) << "Failed to allocate color buffer storage.";
DestroyFramebuffer();

Powered by Google App Engine
This is Rietveld 408576698