| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GL_ANDROID_SURFACE_TEXTURE_H_ | 5 #ifndef UI_GL_ANDROID_SURFACE_TEXTURE_H_ |
| 6 #define UI_GL_ANDROID_SURFACE_TEXTURE_H_ | 6 #define UI_GL_ANDROID_SURFACE_TEXTURE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "ui/gl/gl_export.h" | 14 #include "ui/gl/gl_export.h" |
| 14 | 15 |
| 15 struct ANativeWindow; | 16 struct ANativeWindow; |
| 16 | 17 |
| 17 namespace gfx { | 18 namespace gfx { |
| 18 | 19 |
| 19 // This class serves as a bridge for native code to call java functions inside | 20 // This class serves as a bridge for native code to call java functions inside |
| 20 // android SurfaceTexture class. | 21 // android SurfaceTexture class. |
| 21 class GL_EXPORT SurfaceTexture | 22 class GL_EXPORT SurfaceTexture |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 67 |
| 67 // Java SurfaceTexture instance. | 68 // Java SurfaceTexture instance. |
| 68 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; | 69 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(SurfaceTexture); | 71 DISALLOW_COPY_AND_ASSIGN(SurfaceTexture); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace gfx | 74 } // namespace gfx |
| 74 | 75 |
| 75 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_H_ | 76 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_H_ |
| OLD | NEW |