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

Unified Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.cc

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 years, 8 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/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());
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698