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

Side by Side Diff: content/common/android/surface.h

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove more 'manual JNI' code Created 7 years, 9 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698