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

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: Fixed ownership of LayerTreeBuilder and offsetting logic update 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..7aa7b3e5dc7c61a607cd9c43fbb90a80628cf871
--- /dev/null
+++ b/content/public/browser/android/layer_tree_build_helper.h
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
Yaron 2014/04/29 04:24:02 I don't see this added in gyp.
Yusuf 2014/04/29 17:39:34 Done.
+// 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:
+ LayerTreeBuildHelper() {};
+ virtual scoped_refptr<cc::Layer> GetLayerTree(
+ scoped_refptr<cc::Layer> content_root_layer) = 0;
+ virtual ~LayerTreeBuildHelper() {};
+
+ DISALLOW_COPY_AND_ASSIGN(LayerTreeBuildHelper);
Yaron 2014/04/29 04:24:02 Add "private:" label.
Yusuf 2014/04/29 17:39:34 Done.
+};
+
+}
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698