Chromium Code Reviews| 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_ |