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

Unified Diff: content/public/browser/android/layer_tree_build_helper.h

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing javadoc Created 6 years, 8 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
Index: content/public/browser/android/layer_tree_build_helper.h
diff --git a/content/public/browser/android/layer_tree_build_helper.h b/content/public/browser/android/layer_tree_build_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..68484c8bde6b8d444a8ad3c28067d41f3628f4f0
--- /dev/null
+++ b/content/public/browser/android/layer_tree_build_helper.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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_PUBLIC_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace cc {
+class Layer;
+}
+
+namespace content {
+
+// A Helper class to build a layer tree to be composited
+// given a content root layer.
+class LayerTreeBuildHelper {
+ public:
+
Yaron 2014/04/24 19:47:11 nit: ws
Yusuf 2014/04/28 23:18:46 Done.
+ LayerTreeBuildHelper();
+
+ virtual scoped_refptr<cc::Layer> GetLayerTree(
+ scoped_refptr<cc::Layer> content_root_layer) = 0;
+
+ protected:
+ virtual ~LayerTreeBuildHelper();
+ scoped_refptr<cc::Layer> root_layer_;
Yaron 2014/04/24 19:47:11 Move to impl.
+
+ DISALLOW_COPY_AND_ASSIGN(LayerTreeBuildHelper);
+};
+
+}
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698