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

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

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 settings.gpu_rasterization_enabled = 298 settings.gpu_rasterization_enabled =
299 compositor_deps_->IsGpuRasterizationEnabled(); 299 compositor_deps_->IsGpuRasterizationEnabled();
300 300
301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
302 settings.use_distance_field_text = 302 settings.use_distance_field_text =
303 compositor_deps_->IsDistanceFieldTextEnabled(); 303 compositor_deps_->IsDistanceFieldTextEnabled();
304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
305 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); 305 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
306 settings.enable_elastic_overscroll = 306 settings.enable_elastic_overscroll =
307 compositor_deps_->IsElasticOverscrollEnabled(); 307 compositor_deps_->IsElasticOverscrollEnabled();
308 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget(); 308 settings.use_image_texture_targets =
309 compositor_deps_->GetImageTextureTargets();
309 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); 310 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled();
310 311
311 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 312 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
312 std::string top_threshold_str = 313 std::string top_threshold_str =
313 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 314 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
314 double show_threshold; 315 double show_threshold;
315 if (base::StringToDouble(top_threshold_str, &show_threshold) && 316 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
316 show_threshold >= 0.f && show_threshold <= 1.f) 317 show_threshold >= 0.f && show_threshold <= 1.f)
317 settings.top_controls_show_threshold = show_threshold; 318 settings.top_controls_show_threshold = show_threshold;
318 } 319 }
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 return; 1034 return;
1034 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1035 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1035 } 1036 }
1036 1037
1037 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1038 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1038 uint32_t surface_id_namespace) { 1039 uint32_t surface_id_namespace) {
1039 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1040 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1040 } 1041 }
1041 1042
1042 } // namespace content 1043 } // 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