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

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

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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.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(

Powered by Google App Engine
This is Rietveld 408576698