fix build: SurfaceTextureClient to Surface rename
Change-Id: I54d68241f1080eef640aefe71f33912ad79345ef
This commit is contained in:
parent
b7daa0dade
commit
f25c5086cf
@ -57,6 +57,10 @@ public:
|
|||||||
static status_t writeToParcel(const sp<Surface>& surface, Parcel* parcel);
|
static status_t writeToParcel(const sp<Surface>& surface, Parcel* parcel);
|
||||||
static sp<Surface> readFromParcel(const Parcel& data);
|
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...
|
// FIXME: temporary for source compatibility...
|
||||||
sp<IGraphicBufferProducer> getISurfaceTexture() const {
|
sp<IGraphicBufferProducer> getISurfaceTexture() const {
|
||||||
return getIGraphicBufferProducer();
|
return getIGraphicBufferProducer();
|
||||||
|
Loading…
Reference in New Issue
Block a user