Index: content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
diff --git a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
index 2254cbfca2a9e06667454d8949231bcb2d2a2508..acff9166996e1667e1ef5006a6e54823cc28e075 100644 |
--- a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
+++ b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
@@ -62,8 +62,8 @@ void OffscreenBrowserCompositorOutputSurface::EnsureBackbuffer() { |
GLES2Interface* gl = context_provider_->ContextGL(); |
- int max_texture_size = |
- context_provider_->ContextCapabilities().gpu.max_texture_size; |
+ const int max_texture_size = |
+ context_provider_->ContextCapabilities().max_texture_size; |
int texture_width = std::min(max_texture_size, surface_size_.width()); |
int texture_height = std::min(max_texture_size, surface_size_.height()); |