diff options
| author | 2012-12-18 09:49:45 -0800 | |
|---|---|---|
| committer | 2012-12-18 13:10:48 -0800 | |
| commit | 2adaf04fab35cf47c824d74d901b54094e01ccd3 (patch) | |
| tree | 1201bd220bfea6d308a119e6a986d783e548a10a /include/gui/Surface.h | |
| parent | f7baee731e81bfa7f7ccf2e0e03560f5073bc431 (diff) | |
Rename ISurfaceTexture and SurfaceTexture
The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.
Bug 7736700
Change-Id: Ia03e468888025b5cae3c0ee1995434515dbea387
Diffstat (limited to 'include/gui/Surface.h')
| -rw-r--r-- | include/gui/Surface.h | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/include/gui/Surface.h b/include/gui/Surface.h index f3455b5d64..cba11b8a44 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -37,7 +37,7 @@ namespace android {  // --------------------------------------------------------------------------- -class ISurfaceTexture; +class IGraphicBufferProducer;  class Surface;  class SurfaceComposerClient; @@ -126,7 +126,7 @@ public:          uint32_t    reserved[2];      }; -    explicit Surface(const sp<ISurfaceTexture>& st); +    explicit Surface(const sp<IGraphicBufferProducer>& bp);      static status_t writeToParcel(const sp<Surface>& control, Parcel* parcel); @@ -137,7 +137,7 @@ public:      bool        isValid();      uint32_t    getIdentity() const { return mIdentity; } -    sp<ISurfaceTexture> getSurfaceTexture(); +    sp<IGraphicBufferProducer> getSurfaceTexture();     // TODO: rename this      // the lock/unlock APIs must be used from the same thread      status_t    lock(SurfaceInfo* info, Region* dirty = NULL); @@ -161,7 +161,7 @@ private:      /*       *  private stuff...       */ -    void init(const sp<ISurfaceTexture>& surfaceTexture); +    void init(const sp<IGraphicBufferProducer>& bufferProducer);      static void cleanCachedSurfacesLocked(); |