Searched defs:internalFormat (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/libs/hwui/
H A DGradientCache.cpp263 GLint internalFormat = mHasLinearBlending ? GL_SRGB8_ALPHA8 : GL_RGBA; local
264 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
H A DTexture.cpp95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat, argument
100 && mInternalFormat == internalFormat
107 mInternalFormat = internalFormat;
109 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat));
120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height, argument
123 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
131 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
134 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
151 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type, argument
162 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, widt
303 GLint internalFormat, format, type; local
383 wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, GLint format, GLenum target) argument
[all...]
H A DTexture.h90 void resize(uint32_t width, uint32_t height, GLint internalFormat, GLint format) { argument
91 upload(internalFormat, width, height, format, GL_UNSIGNED_BYTE, nullptr);
106 void upload(GLint internalFormat, uint32_t width, uint32_t height,
112 void wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat,
131 GLint internalFormat() const { function in class:android::uirenderer::Texture
199 bool updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp183 GLint internalFormat = mFormat; local
185 internalFormat = mCaches.rgbaInternalFormat();
188 mTexture.resize(mWidth, mHeight, internalFormat, mFormat);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp98 static PixelFormat internalFormatToPixelFormat(GLint internalFormat) { argument
99 switch (internalFormat) {
111 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", internalFormat);
229 GLint format, type, internalFormat; local
231 needSRGB && hasLinearBlending, &internalFormat, &format, &type);
233 PixelFormat pixelFormat = internalFormatToPixelFormat(internalFormat);

Completed in 92 milliseconds