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

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

Issue 1227163017: cc: one copy is default as well as final fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 5 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
« 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 compositor_deps_->GetGpuRasterizationMSAASampleCount(); 287 compositor_deps_->GetGpuRasterizationMSAASampleCount();
288 settings.gpu_rasterization_forced = 288 settings.gpu_rasterization_forced =
289 compositor_deps_->IsGpuRasterizationForced(); 289 compositor_deps_->IsGpuRasterizationForced();
290 settings.gpu_rasterization_enabled = 290 settings.gpu_rasterization_enabled =
291 compositor_deps_->IsGpuRasterizationEnabled(); 291 compositor_deps_->IsGpuRasterizationEnabled();
292 292
293 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 293 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
294 settings.use_distance_field_text = 294 settings.use_distance_field_text =
295 compositor_deps_->IsDistanceFieldTextEnabled(); 295 compositor_deps_->IsDistanceFieldTextEnabled();
296 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 296 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
297 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
298 settings.enable_elastic_overscroll = 297 settings.enable_elastic_overscroll =
299 compositor_deps_->IsElasticOverscrollEnabled(); 298 compositor_deps_->IsElasticOverscrollEnabled();
300 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget(); 299 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget();
301 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); 300 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled();
302 301
303 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 302 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
304 std::string top_threshold_str = 303 std::string top_threshold_str =
305 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 304 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
306 double show_threshold; 305 double show_threshold;
307 if (base::StringToDouble(top_threshold_str, &show_threshold) && 306 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 return; 1036 return;
1038 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1037 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1039 } 1038 }
1040 1039
1041 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1040 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1042 uint32_t surface_id_namespace) { 1041 uint32_t surface_id_namespace) {
1043 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1042 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1044 } 1043 }
1045 1044
1046 } // namespace content 1045 } // 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