Index: cc/output/delegating_renderer.cc |
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc |
index 365ee851952a1a8c9bb85ca09de29ae9e7a84b8d..1bd7d0a300eb351bb21c85decb545d812e104dab 100644 |
--- a/cc/output/delegating_renderer.cc |
+++ b/cc/output/delegating_renderer.cc |
@@ -56,7 +56,13 @@ DelegatingRenderer::DelegatingRenderer(RendererClient* client, |
capabilities_.using_image = caps.gpu.image; |
capabilities_.allow_rasterize_on_demand = false; |
- capabilities_.max_msaa_samples = caps.gpu.max_samples; |
+ |
+ // 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) |
+ capabilities_.max_msaa_samples = 0; |
+ else |
+ capabilities_.max_msaa_samples = caps.gpu.max_samples; |
} |
} |