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

Unified Diff: content/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: Moved setting up layer tree to a helper class Created 6 years, 9 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.h
diff --git a/content/browser/android/layer_tree_build_helper.h b/content/browser/android/layer_tree_build_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bb3cbcff986e02c5ec70f642cd4817b6a46b705
--- /dev/null
+++ b/content/browser/android/layer_tree_build_helper.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_H_
+#define CONTENT_BROWSER_ANDROID_LAYER_TREE_BUILD_HELPER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace cc {
+class Layer;
+class SolidColorLayer;
+}
+
+namespace content {
+class Compositor;
+class ContentViewCoreImpl;
+
+class LayerTreeBuildHelper {
Yaron 2014/04/10 01:26:09 Needs comment.
Yusuf 2014/04/23 00:16:14 Done.
+ public:
+
+ LayerTreeBuildHelper();
+
+ virtual ~LayerTreeBuildHelper();
+
+ virtual cc::Layer* GetLayerTree(ContentViewCoreImpl* content_view);
+
+ protected:
+ scoped_refptr<cc::Layer> root_layer_;
+
+ DISALLOW_COPY_AND_ASSIGN(LayerTreeBuildHelper);
+};
+
+}
+
+#endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698