Loading libs/hwui/PixelBuffer.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public: uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override; uint8_t* getMappedPointer() const override; void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; protected: Loading @@ -64,10 +62,6 @@ void CpuPixelBuffer::unmap() { mAccessMode = kAccessMode_None; } uint8_t* CpuPixelBuffer::getMappedPointer() const { return mAccessMode == kAccessMode_None ? nullptr : mBuffer.get(); } void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat, GL_UNSIGNED_BYTE, &mBuffer[offset]); Loading @@ -84,8 +78,6 @@ public: uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override; uint8_t* getMappedPointer() const override; void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; protected: Loading Loading @@ -142,10 +134,6 @@ void GpuPixelBuffer::unmap() { } } uint8_t* GpuPixelBuffer::getMappedPointer() const { return mMappedPointer; } void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { // If the buffer is not mapped, unmap() will not bind it mCaches.pixelBufferState().bind(mBuffer); Loading libs/hwui/PixelBuffer.h +1 −8 Original line number Diff line number Diff line Loading @@ -98,12 +98,6 @@ public: return mAccessMode; } /** * Returns the currently mapped pointer. Returns NULL if the buffer * is not mapped. */ virtual uint8_t* getMappedPointer() const = 0; /** * Upload the specified rectangle of this pixel buffer as a * GL_TEXTURE_2D texture. Calling this method will trigger Loading Loading @@ -199,8 +193,7 @@ protected: /** * Unmaps this buffer, if needed. After the buffer is unmapped, * the pointer previously returned by map() becomes invalid and * should not be used. After calling this method, getMappedPointer() * will always return NULL. * should not be used. */ virtual void unmap() = 0; Loading Loading
libs/hwui/PixelBuffer.cpp +0 −12 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public: uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override; uint8_t* getMappedPointer() const override; void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; protected: Loading @@ -64,10 +62,6 @@ void CpuPixelBuffer::unmap() { mAccessMode = kAccessMode_None; } uint8_t* CpuPixelBuffer::getMappedPointer() const { return mAccessMode == kAccessMode_None ? nullptr : mBuffer.get(); } void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat, GL_UNSIGNED_BYTE, &mBuffer[offset]); Loading @@ -84,8 +78,6 @@ public: uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override; uint8_t* getMappedPointer() const override; void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; protected: Loading Loading @@ -142,10 +134,6 @@ void GpuPixelBuffer::unmap() { } } uint8_t* GpuPixelBuffer::getMappedPointer() const { return mMappedPointer; } void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { // If the buffer is not mapped, unmap() will not bind it mCaches.pixelBufferState().bind(mBuffer); Loading
libs/hwui/PixelBuffer.h +1 −8 Original line number Diff line number Diff line Loading @@ -98,12 +98,6 @@ public: return mAccessMode; } /** * Returns the currently mapped pointer. Returns NULL if the buffer * is not mapped. */ virtual uint8_t* getMappedPointer() const = 0; /** * Upload the specified rectangle of this pixel buffer as a * GL_TEXTURE_2D texture. Calling this method will trigger Loading Loading @@ -199,8 +193,7 @@ protected: /** * Unmaps this buffer, if needed. After the buffer is unmapped, * the pointer previously returned by map() becomes invalid and * should not be used. After calling this method, getMappedPointer() * will always return NULL. * should not be used. */ virtual void unmap() = 0; Loading