summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2013-02-15 14:59:09 -0800
committer Mathias Agopian <mathias@google.com> 2013-02-15 14:59:09 -0800
commitf25c5086cf46eb029d887f34f25a09220e44958c (patch)
tree520d0a4f2758b76ee3b9f6f68c5c436192f38cd0
parentb7daa0dadebdb043d63e585975a128c5fc087168 (diff)
fix build: SurfaceTextureClient to Surface rename
Change-Id: I54d68241f1080eef640aefe71f33912ad79345ef
-rw-r--r--include/gui/Surface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 4300a0ffff..a48e7e45ab 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -57,6 +57,10 @@ public:
static status_t writeToParcel(const sp<Surface>& surface, Parcel* parcel);
static sp<Surface> readFromParcel(const Parcel& data);
+ bool isValid(const sp<Surface>& surface) const {
+ return surface != NULL && surface->getIGraphicBufferProducer() != NULL;
+ }
+
// FIXME: temporary for source compatibility...
sp<IGraphicBufferProducer> getISurfaceTexture() const {
return getIGraphicBufferProducer();