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

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: 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..78f465879b108951f80325c331a2dd605dd074a5
--- /dev/null
+++ b/content/common/android/surface.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
bulach 2013/03/01 11:38:24 see my comments above, I think we can get rid of t
+// 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);
+ ~Surface();
+
+ void Release();
+ static void Release(jobject surface);
+
+ 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