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

Side by Side Diff: blimp/client/compositor/blimp_layer_tree_settings.cc

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/client/compositor/blimp_layer_tree_settings.h" 5 #include "blimp/client/compositor/blimp_layer_tree_settings.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "cc/base/switches.h" 13 #include "cc/base/switches.h"
14 #include "cc/trees/layer_tree_settings.h" 14 #include "cc/trees/layer_tree_settings.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/gfx/buffer_types.h" 16 #include "ui/gfx/buffer_types.h"
17 #include "ui/gl/gl_switches.h" 17 #include "ui/gl/gl_switches.h"
18 18
19 namespace blimp { 19 namespace blimp {
20 namespace client {
20 21
21 // TODO(dtrainor): This is temporary to get the compositor up and running. 22 // TODO(dtrainor): This is temporary to get the compositor up and running.
22 // Much of this will either have to be pulled from the server or refactored to 23 // Much of this will either have to be pulled from the server or refactored to
23 // share the settings from render_widget_compositor.cc. 24 // share the settings from render_widget_compositor.cc.
24 void PopulateCommonLayerTreeSettings(cc::LayerTreeSettings* settings) { 25 void PopulateCommonLayerTreeSettings(cc::LayerTreeSettings* settings) {
25 // For web contents, layer transforms should scale up the contents of layers 26 // For web contents, layer transforms should scale up the contents of layers
26 // to keep content always crisp when possible. 27 // to keep content always crisp when possible.
27 settings->layer_transforms_should_scale_layer_contents = true; 28 settings->layer_transforms_should_scale_layer_contents = true;
28 29
29 settings->main_frame_before_activation_enabled = false; 30 settings->main_frame_before_activation_enabled = false;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // page scale is at least some threshold away from the minimum. i.e. don't 99 // page scale is at least some threshold away from the minimum. i.e. don't
99 // show the pinch scrollbars when at minimum scale. 100 // show the pinch scrollbars when at minimum scale.
100 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed. 101 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed.
101 // settings->scrollbar_show_scale_threshold = 1.05f; 102 // settings->scrollbar_show_scale_threshold = 1.05f;
102 #endif 103 #endif
103 104
104 // Blimp always uses new cc::AnimationHost system. 105 // Blimp always uses new cc::AnimationHost system.
105 settings->use_compositor_animation_timelines = true; 106 settings->use_compositor_animation_timelines = true;
106 } 107 }
107 108
109 } // namespace client
108 } // namespace blimp 110 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/compositor/blimp_layer_tree_settings.h ('k') | blimp/client/compositor/blimp_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698