| 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();
|
|
|