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

Side by Side Diff: cc/layer_tree_settings.cc

Issue 12095071: Convert top controls to use DIP instead of PX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_settings.h ('k') | cc/switches.cc » ('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 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 13 matching lines...) Expand all
24 , acceleratedAnimationEnabled(true) 24 , acceleratedAnimationEnabled(true)
25 , pageScalePinchZoomEnabled(false) 25 , pageScalePinchZoomEnabled(false)
26 , backgroundColorInsteadOfCheckerboard(false) 26 , backgroundColorInsteadOfCheckerboard(false)
27 , showOverdrawInTracing(false) 27 , showOverdrawInTracing(false)
28 , canUseLCDText(true) 28 , canUseLCDText(true)
29 , shouldClearRootRenderPass(true) 29 , shouldClearRootRenderPass(true)
30 , useLinearFadeScrollbarAnimator(false) 30 , useLinearFadeScrollbarAnimator(false)
31 , calculateTopControlsPosition(false) 31 , calculateTopControlsPosition(false)
32 , minimumContentsScale(0.0625f) 32 , minimumContentsScale(0.0625f)
33 , lowResContentsScaleFactor(0.125f) 33 , lowResContentsScaleFactor(0.125f)
34 , topControlsHeight(0.f)
34 , refreshRate(0) 35 , refreshRate(0)
35 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) 36 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max())
36 , numRasterThreads(1) 37 , numRasterThreads(1)
37 , topControlsHeightPx(0)
38 , defaultTileSize(gfx::Size(256, 256)) 38 , defaultTileSize(gfx::Size(256, 256))
39 , maxUntiledLayerSize(gfx::Size(512, 512)) 39 , maxUntiledLayerSize(gfx::Size(512, 512))
40 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) 40 , minimumOcclusionTrackingSize(gfx::Size(160, 160))
41 { 41 {
42 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore. 42 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore.
43 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage); 43 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage);
44 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap); 44 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap);
45 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard); 45 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard);
46 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw); 46 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw);
47 47
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 num_raster_threads; 91 num_raster_threads;
92 } 92 }
93 } 93 }
94 } 94 }
95 95
96 LayerTreeSettings::~LayerTreeSettings() 96 LayerTreeSettings::~LayerTreeSettings()
97 { 97 {
98 } 98 }
99 99
100 } // namespace cc 100 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_settings.h ('k') | cc/switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698