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

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

Issue 1425533006: cc: Add flag to specify to ResourceProvider to always use GMBs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test and build Created 5 years, 1 month 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
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | 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 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 settings.gpu_rasterization_enabled = 293 settings.gpu_rasterization_enabled =
294 compositor_deps_->IsGpuRasterizationEnabled(); 294 compositor_deps_->IsGpuRasterizationEnabled();
295 295
296 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 296 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
297 settings.use_distance_field_text = 297 settings.use_distance_field_text =
298 compositor_deps_->IsDistanceFieldTextEnabled(); 298 compositor_deps_->IsDistanceFieldTextEnabled();
299 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 299 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled(); 300 settings.use_partial_raster = compositor_deps_->IsPartialRasterEnabled();
301 settings.enable_elastic_overscroll = 301 settings.enable_elastic_overscroll =
302 compositor_deps_->IsElasticOverscrollEnabled(); 302 compositor_deps_->IsElasticOverscrollEnabled();
303 settings.renderer_settings.use_gpu_memory_buffer_resources =
304 compositor_deps_->IsGpuMemoryBufferCompositorResourcesEnabled();
303 settings.use_image_texture_targets = 305 settings.use_image_texture_targets =
304 compositor_deps_->GetImageTextureTargets(); 306 compositor_deps_->GetImageTextureTargets();
305 settings.image_decode_tasks_enabled = 307 settings.image_decode_tasks_enabled =
306 compositor_deps_->AreImageDecodeTasksEnabled(); 308 compositor_deps_->AreImageDecodeTasksEnabled();
307 309
308 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 310 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
309 std::string top_threshold_str = 311 std::string top_threshold_str =
310 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 312 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
311 double show_threshold; 313 double show_threshold;
312 if (base::StringToDouble(top_threshold_str, &show_threshold) && 314 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 #endif 1081 #endif
1080 return actual; 1082 return actual;
1081 } 1083 }
1082 1084
1083 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1085 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1084 float device_scale) { 1086 float device_scale) {
1085 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1087 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1086 } 1088 }
1087 1089
1088 } // namespace content 1090 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698