Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_H_ | |
| 6 #define CONTENT_COMMON_ANDROID_SURFACE_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/android/scoped_java_ref.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class Surface { | |
| 15 public: | |
| 16 Surface(const base::android::JavaRef<jobject>& surface_texture); | |
| 17 ~Surface(); | |
| 18 | |
| 19 void Release(); | |
| 20 static void Release(jobject surface); | |
| 21 | |
| 22 const base::android::JavaRef<jobject>& j_surface() const { | |
| 23 return j_surface_; | |
| 24 } | |
| 25 | |
| 26 private: | |
| 27 base::android::ScopedJavaGlobalRef<jobject> j_surface_; | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_COMMON_ANDROID_SURFACE_H_ | |
| OLD | NEW |