OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ |
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "cc/layers/layer.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
15 | 16 |
16 namespace cc { | |
17 class Layer; | |
18 } | |
19 | |
20 namespace chrome { | 17 namespace chrome { |
21 namespace android { | 18 namespace android { |
22 | 19 |
23 // A native-side, cc::Layer based representation of how a scene should be drawn. | 20 // A native-side, cc::Layer based representation of how a scene should be drawn. |
24 // Basically, this is a wrapper around cc::Layer and bridge with its Java | 21 // Basically, this is a wrapper around cc::Layer and bridge with its Java |
25 // counterpart. | 22 // counterpart. |
26 class SceneLayer { | 23 class SceneLayer { |
27 public: | 24 public: |
28 static SceneLayer* FromJavaObject(JNIEnv* env, jobject jobj); | 25 static SceneLayer* FromJavaObject(JNIEnv* env, jobject jobj); |
29 | 26 |
(...skipping 27 matching lines...) Expand all Loading... |
57 private: | 54 private: |
58 DISALLOW_COPY_AND_ASSIGN(SceneLayer); | 55 DISALLOW_COPY_AND_ASSIGN(SceneLayer); |
59 }; | 56 }; |
60 | 57 |
61 bool RegisterSceneLayer(JNIEnv* env); | 58 bool RegisterSceneLayer(JNIEnv* env); |
62 | 59 |
63 } // namespace android | 60 } // namespace android |
64 } // namespace chrome | 61 } // namespace chrome |
65 | 62 |
66 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ | 63 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_SCENE_LAYER_H_ |
OLD | NEW |