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

Side by Side Diff: content/common/android/surface_texture_listener.cc

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/common/android/surface_texture_listener.h" 5 #include "content/common/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_proxy.h"
10 #include "content/common/android/surface_texture_bridge.h" 10 #include "content/common/android/surface_texture_bridge.h"
11 #include "jni/surface_texture_listener_jni.h" 11 #include "jni/SurfaceTextureListener_jni.h"
12 12
13 namespace content { 13 namespace content {
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.
20 // This is necessary to avoid races with incoming notifications. 20 // This is necessary to avoid races with incoming notifications.
21 ScopedJavaLocalRef<jobject> listener(Java_SurfaceTextureListener_create(env, 21 ScopedJavaLocalRef<jobject> listener(Java_SurfaceTextureListener_create(env,
(...skipping 21 matching lines...) Expand all
43 DCHECK(!browser_loop_->BelongsToCurrentThread()); 43 DCHECK(!browser_loop_->BelongsToCurrentThread());
44 browser_loop_->PostTask(FROM_HERE, callback_); 44 browser_loop_->PostTask(FROM_HERE, callback_);
45 } 45 }
46 46
47 // static 47 // static
48 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) { 48 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) {
49 return RegisterNativesImpl(env); 49 return RegisterNativesImpl(env);
50 } 50 }
51 51
52 } // namespace content 52 } // namespace content
OLDNEW
« no previous file with comments | « content/common/android/surface_callback.cc ('k') | content/common/android/trace_event_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698