diff --git a/include/gui/Surface.h b/include/gui/Surface.h index a48e7e45a..bfd5a11d0 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -57,7 +57,7 @@ public: static status_t writeToParcel(const sp& surface, Parcel* parcel); static sp readFromParcel(const Parcel& data); - bool isValid(const sp& surface) const { + static bool isValid(const sp& surface) { return surface != NULL && surface->getIGraphicBufferProducer() != NULL; }