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

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

Issue 766663005: cc: zero/one-copy based on shared memory on IOS uses GL_TEXTURE_2D, not GL_TEXTURE_RECTANGLE_ARB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac build Created 6 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
« no previous file with comments | « content/public/common/content_switches.cc ('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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 render_thread->is_impl_side_painting_enabled(); 229 render_thread->is_impl_side_painting_enabled();
230 settings.gpu_rasterization_forced = 230 settings.gpu_rasterization_forced =
231 render_thread->is_gpu_rasterization_forced(); 231 render_thread->is_gpu_rasterization_forced();
232 settings.gpu_rasterization_enabled = 232 settings.gpu_rasterization_enabled =
233 render_thread->is_gpu_rasterization_enabled(); 233 render_thread->is_gpu_rasterization_enabled();
234 settings.can_use_lcd_text = render_thread->is_lcd_text_enabled(); 234 settings.can_use_lcd_text = render_thread->is_lcd_text_enabled();
235 settings.use_distance_field_text = 235 settings.use_distance_field_text =
236 render_thread->is_distance_field_text_enabled(); 236 render_thread->is_distance_field_text_enabled();
237 settings.use_zero_copy = render_thread->is_zero_copy_enabled(); 237 settings.use_zero_copy = render_thread->is_zero_copy_enabled();
238 settings.use_one_copy = render_thread->is_one_copy_enabled(); 238 settings.use_one_copy = render_thread->is_one_copy_enabled();
239 settings.use_image_external = render_thread->use_image_external(); 239 settings.use_image_texture_target =
240 render_thread->use_image_texture_target();
240 } 241 }
241 242
242 settings.calculate_top_controls_position = 243 settings.calculate_top_controls_position =
243 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation); 244 cmd->HasSwitch(cc::switches::kEnableTopControlsPositionCalculation);
244 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 245 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
245 std::string top_threshold_str = 246 std::string top_threshold_str =
246 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 247 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
247 double show_threshold; 248 double show_threshold;
248 if (base::StringToDouble(top_threshold_str, &show_threshold) && 249 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
249 show_threshold >= 0.f && show_threshold <= 1.f) 250 show_threshold >= 0.f && show_threshold <= 1.f)
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 widget_->OnSwapBuffersAborted(); 896 widget_->OnSwapBuffersAborted();
896 } 897 }
897 898
898 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 899 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
899 cc::ContextProvider* provider = 900 cc::ContextProvider* provider =
900 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 901 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
901 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 902 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
902 } 903 }
903 904
904 } // namespace content 905 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698