Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
bulach
2013/03/04 10:44:51
nit: 2013 :)
| |
| 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); | |
|
bulach
2013/03/04 10:44:51
nit: explicit
| |
| 17 ~Surface(); | |
| 18 | |
| 19 void Release(); | |
|
bulach
2013/03/04 10:44:51
nit: as above, it seems that this method can go aw
| |
| 20 | |
| 21 const base::android::JavaRef<jobject>& j_surface() const { | |
| 22 return j_surface_; | |
| 23 } | |
| 24 | |
| 25 private: | |
| 26 base::android::ScopedJavaGlobalRef<jobject> j_surface_; | |
| 27 }; | |
| 28 | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_COMMON_ANDROID_SURFACE_H_ | |
| OLD | NEW |