Searched refs:formatSize (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/
H A DPixelBuffer.h126 uint32_t getSize() const { return mWidth * mHeight * formatSize(mFormat); }
132 return (y * mWidth + x) * formatSize(mFormat);
142 static uint32_t formatSize(GLenum format) { function in class:android::uirenderer::PixelBuffer
H A DRenderBuffer.h107 return (uint32_t)((mWidth * mHeight * formatSize(mFormat)) / 8.0f + 0.5f);
114 static uint32_t formatSize(GLenum format) { function in struct:android::uirenderer::RenderBuffer
H A DPixelBuffer.cpp51 , mBuffer(new uint8_t[width * height * formatSize(format)]) {}
H A DFontRenderer.cpp322 const size_t formatSize = PixelBuffer::formatSize(GL_RGBA); local
323 const size_t borderSize = formatSize * TEXTURE_BORDER_SIZE;
324 size_t rowSize = formatSize * glyph.fWidth;
326 size_t dstStride = formatSize * cacheWidth;
/frameworks/base/libs/hwui/font/
H A DCacheTexture.h98 return (y * getWidth() + x) * PixelBuffer::formatSize(mFormat);
H A DFont.cpp213 uint32_t formatSize = PixelBuffer::formatSize(pixelBuffer->getFormat()); local
216 uint32_t srcStride = formatSize * cacheWidth;
227 cacheBuffer[cacheY + (glyph->mStartX + i) * formatSize + alpha_channel_offset];

Completed in 46 milliseconds