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

/frameworks/base/libs/hwui/
H A DPixelBuffer.h151 return mWidth * mHeight * formatSize(mFormat);
158 return (y * mWidth + x) * formatSize(mFormat);
168 static uint32_t formatSize(GLenum format) { function in class:android::uirenderer::PixelBuffer
H A DRenderBuffer.h120 return (uint32_t) ((mWidth * mHeight * formatSize(mFormat)) / 8.0f + 0.5f);
127 static uint32_t formatSize(GLenum format) { function in struct:android::uirenderer::RenderBuffer
H A DPixelBuffer.cpp52 mBuffer = new uint8_t[width * height * formatSize(format)];
H A DFontRenderer.cpp336 const size_t formatSize = PixelBuffer::formatSize(GL_RGBA); local
337 const size_t borderSize = formatSize * TEXTURE_BORDER_SIZE;
338 size_t rowSize = formatSize * glyph.fWidth;
340 size_t dstStride = formatSize * cacheWidth;
/frameworks/base/libs/hwui/font/
H A DFont.cpp220 uint32_t formatSize = PixelBuffer::formatSize(pixelBuffer->getFormat()); local
223 uint32_t srcStride = formatSize * cacheWidth;
232 if (formatSize == 1) {
236 bitmap[bitmapY + dstX + i] = cacheBuffer[cacheY + (glyph->mStartX + i)*formatSize + alpha_channel_offset];
H A DCacheTexture.h108 return (y * mWidth + x) * PixelBuffer::formatSize(mFormat);

Completed in 875 milliseconds