OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 std::numeric_limits<int>::max(), | 121 std::numeric_limits<int>::max(), |
122 &max_untiled_layer_height); | 122 &max_untiled_layer_height); |
123 } | 123 } |
124 | 124 |
125 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, | 125 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, |
126 max_untiled_layer_height); | 126 max_untiled_layer_height); |
127 | 127 |
128 settings.right_aligned_scheduling_enabled = | 128 settings.right_aligned_scheduling_enabled = |
129 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling); | 129 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling); |
130 settings.impl_side_painting = cc::switches::IsImplSidePaintingEnabled(); | 130 settings.impl_side_painting = cc::switches::IsImplSidePaintingEnabled(); |
131 settings.use_cheapness_estimator = | |
132 !cmd->HasSwitch(cc::switches::kDisableCheapnessEstimator); | |
133 settings.use_color_estimator = | 131 settings.use_color_estimator = |
134 !cmd->HasSwitch(cc::switches::kDisableColorEstimator); | 132 !cmd->HasSwitch(cc::switches::kDisableColorEstimator); |
135 settings.prediction_benchmarking = | 133 settings.prediction_benchmarking = |
136 cmd->HasSwitch(cc::switches::kEnablePredictionBenchmarking); | 134 cmd->HasSwitch(cc::switches::kEnablePredictionBenchmarking); |
137 | 135 |
138 settings.calculate_top_controls_position = | 136 settings.calculate_top_controls_position = |
139 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); | 137 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); |
140 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { | 138 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { |
141 std::string controls_height_str = | 139 std::string controls_height_str = |
142 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); | 140 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 557 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
560 } | 558 } |
561 | 559 |
562 scoped_refptr<cc::ContextProvider> | 560 scoped_refptr<cc::ContextProvider> |
563 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 561 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
564 return RenderThreadImpl::current()-> | 562 return RenderThreadImpl::current()-> |
565 OffscreenContextProviderForCompositorThread(); | 563 OffscreenContextProviderForCompositorThread(); |
566 } | 564 } |
567 | 565 |
568 } // namespace content | 566 } // namespace content |
OLD | NEW |