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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 13859012: cc: Remove cheapness estimator usage from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still need static_cast to print size_t Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698