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

Side by Side Diff: cc/layer_tree_settings.cc

Issue 11829052: cc: Don't apply --enable-impl-side-painting to browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Base files missing 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 | « no previous file | webkit/compositor_bindings/web_layer_tree_view_impl.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 19 matching lines...) Expand all
30 , minimumContentsScale(0.0625f) 30 , minimumContentsScale(0.0625f)
31 , refreshRate(0) 31 , refreshRate(0)
32 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) 32 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max())
33 , numRasterThreads(1) 33 , numRasterThreads(1)
34 , defaultTileSize(gfx::Size(256, 256)) 34 , defaultTileSize(gfx::Size(256, 256))
35 , maxUntiledLayerSize(gfx::Size(512, 512)) 35 , maxUntiledLayerSize(gfx::Size(512, 512))
36 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) 36 , minimumOcclusionTrackingSize(gfx::Size(160, 160))
37 { 37 {
38 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore. 38 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore.
39 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage); 39 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi tches::kEnableCompositorFrameMessage);
40 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches: :kEnableImplSidePainting);
41 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap); 40 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap);
42 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard); 41 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard);
43 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw); 42 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw);
44 43
45 // TODO(alokp): Remove this hard-coded setting. 44 // TODO(alokp): Remove this hard-coded setting.
46 // Platforms that need to disable LCD text must explicitly set this value. 45 // Platforms that need to disable LCD text must explicitly set this value.
47 #if defined(OS_ANDROID) 46 #if defined(OS_ANDROID)
48 canUseLCDText = false; 47 canUseLCDText = false;
49 #endif 48 #endif
50 49
(...skipping 29 matching lines...) Expand all
80 num_raster_threads; 79 num_raster_threads;
81 } 80 }
82 } 81 }
83 } 82 }
84 83
85 LayerTreeSettings::~LayerTreeSettings() 84 LayerTreeSettings::~LayerTreeSettings()
86 { 85 {
87 } 86 }
88 87
89 } // namespace cc 88 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698