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

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

Issue 17550008: Make IsSolidColor() a property on CC scrollbar layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 settings.strict_layer_property_change_checking = 267 settings.strict_layer_property_change_checking =
268 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking); 268 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking);
269 269
270 settings.use_map_image = cmd->HasSwitch(cc::switches::kUseMapImage); 270 settings.use_map_image = cmd->HasSwitch(cc::switches::kUseMapImage);
271 271
272 #if defined(OS_ANDROID) 272 #if defined(OS_ANDROID)
273 // TODO(danakj): Move these to the android code. 273 // TODO(danakj): Move these to the android code.
274 settings.can_use_lcd_text = false; 274 settings.can_use_lcd_text = false;
275 settings.max_partial_texture_updates = 0; 275 settings.max_partial_texture_updates = 0;
276 settings.use_linear_fade_scrollbar_animator = true; 276 settings.use_linear_fade_scrollbar_animator = true;
277 settings.solid_color_scrollbars = true; 277 settings.force_solid_color_scrollbars = true;
278 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); 278 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128);
279 settings.solid_color_scrollbar_thickness_dip = 3; 279 settings.solid_color_scrollbar_thickness_dip = 3;
280 settings.highp_threshold_min = 2048; 280 settings.highp_threshold_min = 2048;
281 #endif 281 #endif
282 282
283 if (!compositor->initialize(settings)) 283 if (!compositor->initialize(settings))
284 return scoped_ptr<RenderWidgetCompositor>(); 284 return scoped_ptr<RenderWidgetCompositor>();
285 285
286 return compositor.Pass(); 286 return compositor.Pass();
287 } 287 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 568 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
569 } 569 }
570 570
571 scoped_refptr<cc::ContextProvider> 571 scoped_refptr<cc::ContextProvider>
572 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 572 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
573 return RenderThreadImpl::current()-> 573 return RenderThreadImpl::current()->
574 OffscreenContextProviderForCompositorThread(); 574 OffscreenContextProviderForCompositorThread();
575 } 575 }
576 576
577 } // namespace content 577 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698