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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698