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

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

Issue 69343005: Added preliminary support for tile rasterization with Ganesh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for tests that pass NULL resource_provider/context_provider. Created 7 years 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
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 #include <string> 8 #include <string>
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 if (cmd->HasSwitch(switches::kMaxUntiledLayerHeight)) { 143 if (cmd->HasSwitch(switches::kMaxUntiledLayerHeight)) {
144 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1, 144 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1,
145 std::numeric_limits<int>::max(), 145 std::numeric_limits<int>::max(),
146 &max_untiled_layer_height); 146 &max_untiled_layer_height);
147 } 147 }
148 148
149 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, 149 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width,
150 max_untiled_layer_height); 150 max_untiled_layer_height);
151 151
152 settings.impl_side_painting = cc::switches::IsImplSidePaintingEnabled(); 152 settings.impl_side_painting = cc::switches::IsImplSidePaintingEnabled();
153 settings.using_gpu_rasterization = cc::switches::IsGPURasterizationEnabled();
nduca 2013/12/02 19:50:17 the switch is IsGpuRasterization. Why is the flag
slavi 2013/12/04 02:06:50 Done.
153 154
154 settings.calculate_top_controls_position = 155 settings.calculate_top_controls_position =
155 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); 156 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation);
156 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) { 157 if (cmd->HasSwitch(cc::switches::kTopControlsHeight)) {
157 std::string controls_height_str = 158 std::string controls_height_str =
158 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight); 159 cmd->GetSwitchValueASCII(cc::switches::kTopControlsHeight);
159 double controls_height; 160 double controls_height;
160 if (base::StringToDouble(controls_height_str, &controls_height) && 161 if (base::StringToDouble(controls_height_str, &controls_height) &&
161 controls_height > 0) 162 controls_height > 0)
162 settings.top_controls_height = controls_height; 163 settings.top_controls_height = controls_height;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 widget_->OnSwapBuffersAborted(); 661 widget_->OnSwapBuffersAborted();
661 } 662 }
662 663
663 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 664 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
664 cc::ContextProvider* provider = 665 cc::ContextProvider* provider =
665 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 666 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
666 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); 667 provider->Context3d()->rateLimitOffscreenContextCHROMIUM();
667 } 668 }
668 669
669 } // namespace content 670 } // namespace content
OLDNEW
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/layer_tree_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698