Index: content/common/android/surface.h |
diff --git a/content/common/android/surface.h b/content/common/android/surface.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..14df28c89b32ca336449f9173ec0f591d7a800b1 |
--- /dev/null |
+++ b/content/common/android/surface.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
bulach
2013/03/04 10:44:51
nit: 2013 :)
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_ANDROID_SURFACE_H_ |
+#define CONTENT_COMMON_ANDROID_SURFACE_H_ |
+ |
+#include <jni.h> |
+ |
+#include "base/android/scoped_java_ref.h" |
+ |
+namespace content { |
+ |
+class Surface { |
+ public: |
+ Surface(const base::android::JavaRef<jobject>& surface_texture); |
bulach
2013/03/04 10:44:51
nit: explicit
|
+ ~Surface(); |
+ |
+ void Release(); |
bulach
2013/03/04 10:44:51
nit: as above, it seems that this method can go aw
|
+ |
+ const base::android::JavaRef<jobject>& j_surface() const { |
+ return j_surface_; |
+ } |
+ |
+ private: |
+ base::android::ScopedJavaGlobalRef<jobject> j_surface_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_ANDROID_SURFACE_H_ |