Lines Matching refs:height
35 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
43 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
49 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height):
50 PixelBuffer(format, width, height) {
51 mBuffer = new uint8_t[width * height * formatSize(format)];
73 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) {
74 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height,
84 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
92 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
100 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height):
101 PixelBuffer(format, width, height), mMappedPointer(0), mCaches(Caches::getInstance()) {
137 void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) {
141 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat,
149 PixelBuffer* PixelBuffer::create(GLenum format, uint32_t width, uint32_t height, BufferType type) {
155 return new GpuPixelBuffer(format, width, height);
159 return new CpuPixelBuffer(format, width, height);