diff options
| author | 2012-12-18 09:49:45 -0800 | |
|---|---|---|
| committer | 2012-12-18 13:10:48 -0800 | |
| commit | 2adaf04fab35cf47c824d74d901b54094e01ccd3 (patch) | |
| tree | 1201bd220bfea6d308a119e6a986d783e548a10a /services/surfaceflinger/SurfaceFlinger.cpp | |
| 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 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index f65b82fb7d..f0e57198f2 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -503,7 +503,7 @@ status_t SurfaceFlinger::readyToRun()              sp<FramebufferSurface> fbs = new FramebufferSurface(*mHwc, i);              sp<SurfaceTextureClient> stc = new SurfaceTextureClient( -                        static_cast< sp<ISurfaceTexture> >(fbs->getBufferQueue())); +                        static_cast< sp<IGraphicBufferProducer> >(fbs->getBufferQueue()));              sp<DisplayDevice> hw = new DisplayDevice(this,                      type, isSecure, token, stc, fbs, mEGLConfig);              if (i > DisplayDevice::DISPLAY_PRIMARY) { @@ -571,9 +571,9 @@ uint32_t SurfaceFlinger::getMaxViewportDims() const {  // ----------------------------------------------------------------------------  bool SurfaceFlinger::authenticateSurfaceTexture( -        const sp<ISurfaceTexture>& surfaceTexture) const { +        const sp<IGraphicBufferProducer>& bufferProducer) const {      Mutex::Autolock _l(mStateLock); -    sp<IBinder> surfaceTextureBinder(surfaceTexture->asBinder()); +    sp<IBinder> surfaceTextureBinder(bufferProducer->asBinder());      // Check the visible layer list for the ISurface      const LayerVector& currentLayers = mCurrentState.layersSortedByZ; @@ -590,7 +590,7 @@ bool SurfaceFlinger::authenticateSurfaceTexture(      }      // Check the layers in the purgatory.  This check is here so that if a -    // SurfaceTexture gets destroyed before all the clients are done using it, +    // GLConsumer gets destroyed before all the clients are done using it,      // the error will not be reported as "surface XYZ is not authenticated", but      // will instead fail later on when the client tries to use the surface,      // which should be reported as "surface XYZ returned an -ENODEV".  The @@ -1172,7 +1172,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)                          // own rendering surface                          fbs = new FramebufferSurface(*mHwc, state.type);                          stc = new SurfaceTextureClient( -                                static_cast< sp<ISurfaceTexture> >( +                                static_cast< sp<IGraphicBufferProducer> >(                                          fbs->getBufferQueue()));                      } else {                          if (state.surface != NULL) { |