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

Unified Diff: content/browser/android/layer_tree_build_helper_impl.h

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final comments 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/browser/android/layer_tree_build_helper_impl.h
diff --git a/content/browser/android/layer_tree_build_helper_impl.h b/content/browser/android/layer_tree_build_helper_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8b1a8ab4a67f302a318b31b0f13110fa9b502d5
--- /dev/null
+++ b/content/browser/android/layer_tree_build_helper_impl.h
@@ -0,0 +1,36 @@
+// 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_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_IMPL_H_
+#define CONTENT_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_IMPL_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/public/browser/android/layer_tree_build_helper.h"
+
+namespace cc {
+class Layer;
+}
+
+namespace content {
+
+// A Helper class to build a layer tree to be composited
+// given a content root layer.
+class LayerTreeBuildHelperImpl : public LayerTreeBuildHelper {
+ public:
+ LayerTreeBuildHelperImpl();
+
+ virtual ~LayerTreeBuildHelperImpl();
+
+ virtual scoped_refptr<cc::Layer> GetLayerTree(
+ scoped_refptr<cc::Layer> content_root_layer) OVERRIDE;
+
+ private:
+ scoped_refptr<cc::Layer> root_layer_;
+
+ DISALLOW_COPY_AND_ASSIGN(LayerTreeBuildHelperImpl);
+};
+
+}
+
+#endif // CONTENT_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698