| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 settings.perTilePaintingEnabled = web_settings.perTilePaintingEnabled; | 88 settings.perTilePaintingEnabled = web_settings.perTilePaintingEnabled; |
| 89 settings.acceleratedAnimationEnabled = | 89 settings.acceleratedAnimationEnabled = |
| 90 web_settings.acceleratedAnimationEnabled; | 90 web_settings.acceleratedAnimationEnabled; |
| 91 settings.pageScalePinchZoomEnabled = web_settings.pageScalePinchZoomEnabled; | 91 settings.pageScalePinchZoomEnabled = web_settings.pageScalePinchZoomEnabled; |
| 92 settings.refreshRate = web_settings.refreshRate; | 92 settings.refreshRate = web_settings.refreshRate; |
| 93 settings.defaultTileSize = web_settings.defaultTileSize; | 93 settings.defaultTileSize = web_settings.defaultTileSize; |
| 94 settings.maxUntiledLayerSize = web_settings.maxUntiledLayerSize; | 94 settings.maxUntiledLayerSize = web_settings.maxUntiledLayerSize; |
| 95 | 95 |
| 96 settings.rightAlignedSchedulingEnabled = | 96 settings.rightAlignedSchedulingEnabled = |
| 97 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling); | 97 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling); |
| 98 settings.implSidePainting = | 98 settings.implSidePainting = cc::switches::IsImplSidePaintingEnabled(); |
| 99 cmd->HasSwitch(cc::switches::kEnableImplSidePainting); | |
| 100 settings.useCheapnessEstimator = | 99 settings.useCheapnessEstimator = |
| 101 cmd->HasSwitch(cc::switches::kUseCheapnessEstimator); | 100 cmd->HasSwitch(cc::switches::kUseCheapnessEstimator); |
| 102 | 101 |
| 103 settings.calculateTopControlsPosition = | 102 settings.calculateTopControlsPosition = |
| 104 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); | 103 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); |
| 105 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { | 104 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { |
| 106 std::string controls_height_str = | 105 std::string controls_height_str = |
| 107 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); | 106 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); |
| 108 double controls_height; | 107 double controls_height; |
| 109 if (base::StringToDouble(controls_height_str, &controls_height) && | 108 if (base::StringToDouble(controls_height_str, &controls_height) && |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 widget_->didCompleteSwapBuffers(); | 415 widget_->didCompleteSwapBuffers(); |
| 417 } | 416 } |
| 418 | 417 |
| 419 // TODO(jamesr): This goes through WebViewImpl just to do suppression, refactor | 418 // TODO(jamesr): This goes through WebViewImpl just to do suppression, refactor |
| 420 // that piece out. | 419 // that piece out. |
| 421 void RenderWidgetCompositor::scheduleComposite() { | 420 void RenderWidgetCompositor::scheduleComposite() { |
| 422 client_->scheduleComposite(); | 421 client_->scheduleComposite(); |
| 423 } | 422 } |
| 424 | 423 |
| 425 } // namespace content | 424 } // namespace content |
| OLD | NEW |