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

Unified Diff: content/common/android/surface.h

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove more 'manual JNI' code Created 7 years, 10 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/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_

Powered by Google App Engine
This is Rietveld 408576698