| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "ui/gl/android/surface_texture_listener.h" | 5 #include "ui/gl/android/surface_texture_listener.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "jni/SurfaceTextureListener_jni.h" | 10 #include "jni/SurfaceTextureListener_jni.h" |
| 11 #include "ui/gl/android/surface_texture_bridge.h" | 11 #include "ui/gl/android/surface_texture_bridge.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 | 14 |
| 15 // static | 15 // static |
| 16 jobject SurfaceTextureListener::CreateSurfaceTextureListener( | 16 jobject SurfaceTextureListener::CreateSurfaceTextureListener( |
| 17 JNIEnv* env, | 17 JNIEnv* env, |
| 18 const base::Closure& callback) { | 18 const base::Closure& callback) { |
| 19 // The java listener object owns and releases the native instance. | 19 // The java listener object owns and releases the native instance. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 44 callback_.Run(); | 44 callback_.Run(); |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 // static | 48 // static |
| 49 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) { | 49 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) { |
| 50 return RegisterNativesImpl(env); | 50 return RegisterNativesImpl(env); |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace gfx | 53 } // namespace gfx |
| OLD | NEW |