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

Side by Side Diff: cc/layer_tree_settings.cc

Issue 12297009: cc: SolidColorQuad-based scrollbars for Android [M25] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 7 years, 10 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/layer_tree_settings.h" 5 #include "cc/layer_tree_settings.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 11 matching lines...) Expand all
22 , partialSwapEnabled(false) 22 , partialSwapEnabled(false)
23 , cacheRenderPassContents(true) 23 , cacheRenderPassContents(true)
24 , rightAlignedSchedulingEnabled(false) 24 , rightAlignedSchedulingEnabled(false)
25 , acceleratedAnimationEnabled(true) 25 , acceleratedAnimationEnabled(true)
26 , pageScalePinchZoomEnabled(false) 26 , pageScalePinchZoomEnabled(false)
27 , backgroundColorInsteadOfCheckerboard(false) 27 , backgroundColorInsteadOfCheckerboard(false)
28 , showOverdrawInTracing(false) 28 , showOverdrawInTracing(false)
29 , canUseLCDText(true) 29 , canUseLCDText(true)
30 , shouldClearRootRenderPass(true) 30 , shouldClearRootRenderPass(true)
31 , useLinearFadeScrollbarAnimator(false) 31 , useLinearFadeScrollbarAnimator(false)
32 , solidColorScrollbars(false)
33 , solidColorScrollbarColor(SkColorSetARGB(128, 128, 128, 128))
34 , solidColorScrollbarMargin(4)
jamesr 2013/02/18 04:51:47 can you put the android defaults somewhere outside
32 , calculateTopControlsPosition(false) 35 , calculateTopControlsPosition(false)
33 , useCheapnessEstimator(false) 36 , useCheapnessEstimator(false)
34 , useMemoryManagement(true) 37 , useMemoryManagement(true)
35 , minimumContentsScale(0.0625f) 38 , minimumContentsScale(0.0625f)
36 , lowResContentsScaleFactor(0.125f) 39 , lowResContentsScaleFactor(0.125f)
37 , topControlsHeight(0.f) 40 , topControlsHeight(0.f)
38 , refreshRate(0) 41 , refreshRate(0)
39 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) 42 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max())
40 , numRasterThreads(1) 43 , numRasterThreads(1)
41 , defaultTileSize(gfx::Size(256, 256)) 44 , defaultTileSize(gfx::Size(256, 256))
42 , maxUntiledLayerSize(gfx::Size(512, 512)) 45 , maxUntiledLayerSize(gfx::Size(512, 512))
43 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) 46 , minimumOcclusionTrackingSize(gfx::Size(160, 160))
44 { 47 {
45 // TODO(danakj): Renable surface caching when we can do it more realiably. c rbug.com/170713 48 // TODO(danakj): Renable surface caching when we can do it more realiably. c rbug.com/170713
46 cacheRenderPassContents = false; 49 cacheRenderPassContents = false;
47 } 50 }
48 51
49 LayerTreeSettings::~LayerTreeSettings() 52 LayerTreeSettings::~LayerTreeSettings()
50 { 53 {
51 } 54 }
52 55
53 } // namespace cc 56 } // namespace cc
OLDNEW
« cc/layer_tree_settings.h ('K') | « cc/layer_tree_settings.h ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698