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

Unified Diff: content/common/compositor_util.h

Issue 2285083004: Refactor renderer LayerTreeSettings generating code to common. (Closed)
Patch Set: Minor 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/compositor_util.cc » ('j') | content/renderer/gpu/render_widget_compositor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/compositor_util.h
diff --git a/content/common/compositor_util.h b/content/common/compositor_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..c43d1da339549c2a0381f59a5b408e71de5f27c5
--- /dev/null
+++ b/content/common/compositor_util.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_COMPOSITOR_UTIL_H_
+#define CONTENT_COMMON_COMPOSITOR_UTIL_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 {
+
+// CompositorUtil holds utilities functions to generate compositor instance.
+class CONTENT_EXPORT CompositorUtil {
Khushal 2016/08/29 20:21:14 In cases like these I have seen that we just put i
xingliu 2016/08/29 20:44:33 Ok, I'll just leave it here for now.
+ public:
+ // Generate LayerTreeSettings from command line args.
+ // TODO(xingliu): Refactor LayerTreeSettings generation logic.
+ // crbug.com/577985
+ static void GenerateLayerTreeSettings(cc::LayerTreeSettings& settings,
+ const base::CommandLine& command_line);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_COMPOSITOR_UTIL_H_
« no previous file with comments | « no previous file | content/common/compositor_util.cc » ('j') | content/renderer/gpu/render_widget_compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698