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

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

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed include Created 7 years, 9 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
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 "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/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 settings.refreshRate = web_settings.refreshRate; 95 settings.refreshRate = web_settings.refreshRate;
96 settings.defaultTileSize = web_settings.defaultTileSize; 96 settings.defaultTileSize = web_settings.defaultTileSize;
97 settings.maxUntiledLayerSize = web_settings.maxUntiledLayerSize; 97 settings.maxUntiledLayerSize = web_settings.maxUntiledLayerSize;
98 98
99 settings.rightAlignedSchedulingEnabled = 99 settings.rightAlignedSchedulingEnabled =
100 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling); 100 cmd->HasSwitch(cc::switches::kEnableRightAlignedScheduling);
101 settings.implSidePainting = 101 settings.implSidePainting =
102 cmd->HasSwitch(cc::switches::kEnableImplSidePainting); 102 cmd->HasSwitch(cc::switches::kEnableImplSidePainting);
103 settings.useCheapnessEstimator = 103 settings.useCheapnessEstimator =
104 cmd->HasSwitch(cc::switches::kUseCheapnessEstimator); 104 cmd->HasSwitch(cc::switches::kUseCheapnessEstimator);
105 settings.solidColorBenchmarking =
106 cmd->HasSwitch(cc::switches::kEnableSolidColorBenchmarking);
105 107
106 settings.calculateTopControlsPosition = 108 settings.calculateTopControlsPosition =
107 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); 109 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation);
108 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { 110 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) {
109 std::string controls_height_str = 111 std::string controls_height_str =
110 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); 112 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight);
111 double controls_height; 113 double controls_height;
112 if (base::StringToDouble(controls_height_str, &controls_height) && 114 if (base::StringToDouble(controls_height_str, &controls_height) &&
113 controls_height > 0) 115 controls_height > 0)
114 settings.topControlsHeight = controls_height; 116 settings.topControlsHeight = controls_height;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 510
509 scoped_refptr<cc::ContextProvider> 511 scoped_refptr<cc::ContextProvider>
510 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 512 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
511 if (!contexts_compositor_thread_ || 513 if (!contexts_compositor_thread_ ||
512 contexts_compositor_thread_->DestroyedOnMainThread()) 514 contexts_compositor_thread_->DestroyedOnMainThread())
513 contexts_compositor_thread_ = new CompositorThreadContextProvider; 515 contexts_compositor_thread_ = new CompositorThreadContextProvider;
514 return contexts_compositor_thread_; 516 return contexts_compositor_thread_;
515 } 517 }
516 518
517 } // namespace content 519 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698