diff options
| author | Mathias Agopian <mathias@google.com> | 2013-02-19 18:26:15 -0800 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2013-02-19 18:26:15 -0800 |
| commit | f3d3b4d80618d498fb669c8bfdc492ce9ea25691 (patch) | |
| tree | 5617021bb4b631e3ead1e40e6c4d100efef4c983 | |
| parent | e91efabaf2c51d017bf4c5bc4e06491c3511f4e5 (diff) | |
get rid of uses of getISurfaceTexture
Change-Id: Ibb14327a2b7217994adaa91cc977b163a5509e4a
| -rw-r--r-- | core/jni/android_view_Surface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index ab0d38e530d4..6cd1a5c0db5b 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -112,8 +112,8 @@ jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env, // ---------------------------------------------------------------------------- -static bool isSurfaceValid(const sp<Surface>& sur) { - return sur != 0 && sur->getISurfaceTexture() != 0; +static inline bool isSurfaceValid(const sp<Surface>& sur) { + return Surface::isValid(sur); } // ---------------------------------------------------------------------------- |
