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

Side by Side Diff: cc/layer_tree_settings.cc

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing CC_EXPORT...learn to run try jobs manually Created 7 years, 11 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.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 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"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "cc/switches.h" 12 #include "cc/switches.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 LayerTreeSettings::LayerTreeSettings() 16 LayerTreeSettings::LayerTreeSettings()
17 : acceleratePainting(false) 17 : acceleratePainting(false)
18 , compositorFrameMessage(false) 18 , compositorFrameMessage(false)
19 , implSidePainting(false) 19 , implSidePainting(false)
20 , renderVSyncEnabled(true) 20 , renderVSyncEnabled(true)
21 , perTilePaintingEnabled(false) 21 , perTilePaintingEnabled(false)
22 , partialSwapEnabled(false) 22 , partialSwapEnabled(false)
23 , acceleratedAnimationEnabled(true) 23 , acceleratedAnimationEnabled(true)
24 , pageScalePinchZoomEnabled(false) 24 , pageScalePinchZoomEnabled(false)
25 , backgroundColorInsteadOfCheckerboard(false) 25 , backgroundColorInsteadOfCheckerboard(false)
26 , showOverdrawInTracing(false) 26 , showOverdrawInTracing(false)
27 , canUseLCDText(true) 27 , canUseLCDText(true)
28 , shouldClearRootRenderPass(true) 28 , shouldClearRootRenderPass(true)
29 , useLinearFadeScrollbarAnimator(false) 29 , useLinearFadeScrollbarAnimator(false)
30 , calculateTopControlsPosition(false)
30 , minimumContentsScale(0.0625f) 31 , minimumContentsScale(0.0625f)
31 , lowResContentsScaleFactor(0.125f) 32 , lowResContentsScaleFactor(0.125f)
32 , refreshRate(0) 33 , refreshRate(0)
33 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) 34 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max())
34 , numRasterThreads(1) 35 , numRasterThreads(1)
36 , topControlsHeightPx(0)
35 , defaultTileSize(gfx::Size(256, 256)) 37 , defaultTileSize(gfx::Size(256, 256))
36 , maxUntiledLayerSize(gfx::Size(512, 512)) 38 , maxUntiledLayerSize(gfx::Size(512, 512))
37 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) 39 , minimumOcclusionTrackingSize(gfx::Size(160, 160))
38 { 40 {
39 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore. 41 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore.
40 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage); 42 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage);
41 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap); 43 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap);
42 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard); 44 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard);
43 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw); 45 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw);
44 46
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 num_raster_threads; 82 num_raster_threads;
81 } 83 }
82 } 84 }
83 } 85 }
84 86
85 LayerTreeSettings::~LayerTreeSettings() 87 LayerTreeSettings::~LayerTreeSettings()
86 { 88 {
87 } 89 }
88 90
89 } // namespace cc 91 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_settings.h ('k') | cc/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698