| Index: content/common/gpu/image_transport_surface_fbo_mac.mm
|
| diff --git a/content/common/gpu/image_transport_surface_fbo_mac.mm b/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| index 3b6aa0fb8332b08d6838c83d64df0a5c6b6a8738..96f9b0dd938a1715a450c53a15f8bbade581eccb 100644
|
| --- a/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| +++ b/content/common/gpu/image_transport_surface_fbo_mac.mm
|
| @@ -266,15 +266,15 @@ void ImageTransportSurfaceFBO::OnBufferPresented(
|
| storage_provider_->SwapBuffersAckedByBrowser(params.disable_throttling);
|
| }
|
|
|
| -void ImageTransportSurfaceFBO::OnResize(gfx::Size pixel_size,
|
| - float scale_factor) {
|
| - TRACE_EVENT2("gpu", "ImageTransportSurfaceFBO::OnResize",
|
| - "old_size", pixel_size_.ToString(),
|
| - "new_size", pixel_size.ToString());
|
| +bool ImageTransportSurfaceFBO::Resize(const gfx::Size& pixel_size,
|
| + float scale_factor) {
|
| + TRACE_EVENT2("gpu", "ImageTransportSurfaceFBO::Resize", "old_size",
|
| + pixel_size_.ToString(), "new_size", pixel_size.ToString());
|
| // Caching |context_| from OnMakeCurrent. It should still be current.
|
| DCHECK(context_->IsCurrent(this));
|
|
|
| AllocateOrResizeFramebuffer(pixel_size, scale_factor);
|
| + return true;
|
| }
|
|
|
| void ImageTransportSurfaceFBO::SetLatencyInfo(
|
|
|