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

Unified Diff: cc/output/delegating_renderer.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
« no previous file with comments | « cc/output/context_provider.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index a3746cc9d1b802cd36ff777d8e92bff009f1edb2..c063c7f608dfbfdbda048ebc7f942af291395b9b 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -48,22 +48,22 @@ DelegatingRenderer::DelegatingRenderer(RendererClient* client,
if (!output_surface_->context_provider()) {
capabilities_.using_shared_memory_resources = true;
} else {
- const ContextProvider::Capabilities& caps =
+ const auto& caps =
output_surface_->context_provider()->ContextCapabilities();
- DCHECK(!caps.gpu.iosurface || caps.gpu.texture_rectangle);
+ DCHECK(!caps.iosurface || caps.texture_rectangle);
- capabilities_.using_egl_image = caps.gpu.egl_image_external;
- capabilities_.using_image = caps.gpu.image;
+ capabilities_.using_egl_image = caps.egl_image_external;
+ capabilities_.using_image = caps.image;
capabilities_.allow_rasterize_on_demand = false;
// If MSAA is slow, we want this renderer to behave as though MSAA is not
// available. Set samples to 0 to achieve this.
- if (caps.gpu.msaa_is_slow)
+ if (caps.msaa_is_slow)
capabilities_.max_msaa_samples = 0;
else
- capabilities_.max_msaa_samples = caps.gpu.max_samples;
+ capabilities_.max_msaa_samples = caps.max_samples;
}
}
« no previous file with comments | « cc/output/context_provider.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698