| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 722b05392d37f7cf0535eea68288bf35f1bf37bf..fd4cea6c568aa0048af98548f769d92f66c54597 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1760,8 +1760,10 @@ bool LayerTreeHostImpl::UpdateGpuRasterizationStatus() {
|
| int max_msaa_samples = 0;
|
| ContextProvider* compositor_context_provider =
|
| compositor_frame_sink_->context_provider();
|
| + bool gpu_rasterization_enabled = false;
|
| if (compositor_context_provider) {
|
| const auto& caps = compositor_context_provider->ContextCapabilities();
|
| + gpu_rasterization_enabled = caps.gpu_rasterization;
|
| if (!caps.msaa_is_slow)
|
| max_msaa_samples = caps.max_samples;
|
| }
|
| @@ -1778,7 +1780,7 @@ bool LayerTreeHostImpl::UpdateGpuRasterizationStatus() {
|
| if (use_msaa) {
|
| gpu_rasterization_status_ = GpuRasterizationStatus::MSAA_CONTENT;
|
| }
|
| - } else if (!settings_.gpu_rasterization_enabled) {
|
| + } else if (!gpu_rasterization_enabled) {
|
| gpu_rasterization_status_ = GpuRasterizationStatus::OFF_DEVICE;
|
| } else if (!has_gpu_rasterization_trigger_) {
|
| gpu_rasterization_status_ = GpuRasterizationStatus::OFF_VIEWPORT;
|
|
|