Loading libs/surfaceflinger/LayerBase.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -699,7 +699,8 @@ int32_t LayerBaseClient::sIdentity = 0; LayerBaseClient::LayerBaseClient(SurfaceFlinger* flinger, DisplayID display, const sp<Client>& client, int32_t i) : LayerBase(flinger, display), lcblk(NULL), client(client), mIndex(i), mIdentity(uint32_t(android_atomic_inc(&sIdentity))) mDebug(false), mIndex(i), mIdentity(uint32_t(android_atomic_inc(&sIdentity))) { lcblk = new SharedBufferServer( client->ctrlblk, i, NUM_BUFFERS, Loading libs/surfaceflinger/LayerBase.h +3 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,9 @@ public: friend class Surface; protected: mutable bool mDebug; private: int32_t mIndex; mutable Mutex mLock; Loading libs/surfaceflinger/SurfaceFlinger.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -1523,10 +1523,6 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args) if (l != 0) { SharedBufferStack::Statistics stats = l->lcblk->getStats(); result.append( l->lcblk->dump(" ") ); snprintf(buffer, SIZE, " front-index=%u\n", l->getFrontBufferIndex()); result.append(buffer); sp<const GraphicBuffer> buf0(l->getBuffer(0)); sp<const GraphicBuffer> buf1(l->getBuffer(1)); uint32_t w0=0, h0=0, s0=0; Loading Loading
libs/surfaceflinger/LayerBase.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -699,7 +699,8 @@ int32_t LayerBaseClient::sIdentity = 0; LayerBaseClient::LayerBaseClient(SurfaceFlinger* flinger, DisplayID display, const sp<Client>& client, int32_t i) : LayerBase(flinger, display), lcblk(NULL), client(client), mIndex(i), mIdentity(uint32_t(android_atomic_inc(&sIdentity))) mDebug(false), mIndex(i), mIdentity(uint32_t(android_atomic_inc(&sIdentity))) { lcblk = new SharedBufferServer( client->ctrlblk, i, NUM_BUFFERS, Loading
libs/surfaceflinger/LayerBase.h +3 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,9 @@ public: friend class Surface; protected: mutable bool mDebug; private: int32_t mIndex; mutable Mutex mLock; Loading
libs/surfaceflinger/SurfaceFlinger.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -1523,10 +1523,6 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args) if (l != 0) { SharedBufferStack::Statistics stats = l->lcblk->getStats(); result.append( l->lcblk->dump(" ") ); snprintf(buffer, SIZE, " front-index=%u\n", l->getFrontBufferIndex()); result.append(buffer); sp<const GraphicBuffer> buf0(l->getBuffer(0)); sp<const GraphicBuffer> buf1(l->getBuffer(1)); uint32_t w0=0, h0=0, s0=0; Loading