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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Cosmetic fixes Created 7 years, 7 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
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 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 0, 100, 266 0, 100,
267 &max_unused_resource_memory_percentage)) { 267 &max_unused_resource_memory_percentage)) {
268 settings.max_unused_resource_memory_percentage = 268 settings.max_unused_resource_memory_percentage =
269 max_unused_resource_memory_percentage; 269 max_unused_resource_memory_percentage;
270 } 270 }
271 } 271 }
272 272
273 settings.strict_layer_property_change_checking = 273 settings.strict_layer_property_change_checking =
274 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking); 274 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking);
275 275
276 settings.use_gpu_memory_buffers =
277 cmd->HasSwitch(cc::switches::kUseGpuMemoryBuffers);
278
276 #if defined(OS_ANDROID) 279 #if defined(OS_ANDROID)
277 // TODO(danakj): Move these to the android code. 280 // TODO(danakj): Move these to the android code.
278 settings.can_use_lcd_text = false; 281 settings.can_use_lcd_text = false;
279 settings.max_partial_texture_updates = 0; 282 settings.max_partial_texture_updates = 0;
280 settings.use_linear_fade_scrollbar_animator = true; 283 settings.use_linear_fade_scrollbar_animator = true;
281 settings.solid_color_scrollbars = true; 284 settings.solid_color_scrollbars = true;
282 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); 285 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128);
283 settings.solid_color_scrollbar_thickness_dip = 3; 286 settings.solid_color_scrollbar_thickness_dip = 3;
284 settings.highp_threshold_min = 2048; 287 settings.highp_threshold_min = 2048;
285 #endif 288 #endif
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
571 } 574 }
572 575
573 scoped_refptr<cc::ContextProvider> 576 scoped_refptr<cc::ContextProvider>
574 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
575 return RenderThreadImpl::current()-> 578 return RenderThreadImpl::current()->
576 OffscreenContextProviderForCompositorThread(); 579 OffscreenContextProviderForCompositorThread();
577 } 580 }
578 581
579 } // namespace content 582 } // 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