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

Unified Diff: content/common/layer_tree_settings_factory.h

Issue 2285083004: Refactor renderer LayerTreeSettings generating code to common. (Closed)
Patch Set: Fix Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/layer_tree_settings_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/layer_tree_settings_factory.h
diff --git a/content/common/layer_tree_settings_factory.h b/content/common/layer_tree_settings_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..b97a10d92a49c4dad56f07b446cb4fd40cc4bac8
--- /dev/null
+++ b/content/common/layer_tree_settings_factory.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_LAYER_TREE_SETTINGS_FACTORY_H_
+#define CONTENT_COMMON_LAYER_TREE_SETTINGS_FACTORY_H_
+
+#include "base/command_line.h"
+#include "base/macros.h"
+#include "cc/trees/layer_tree_settings.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// LayerTreeSettingsFactory holds utilities functions to generate
+// LayerTreeSettings.
+class CONTENT_EXPORT LayerTreeSettingsFactory {
+ // TODO(xingliu): Refactor LayerTreeSettings generation logic.
+ // crbug.com/577985
+ public:
+ static void SetTopControlsSettings(cc::LayerTreeSettings& settings,
+ const base::CommandLine& command_line);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_LAYER_TREE_SETTINGS_FACTORY_H_
« no previous file with comments | « no previous file | content/common/layer_tree_settings_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698