Lines Matching defs:height
95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
98 && mHeight == height
105 mHeight = height;
120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height,
123 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
152 GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) {
162 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data);
164 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
174 GLvoid * temp = (GLvoid *) malloc(width * height * bpp);
179 for (GLsizei i = 0; i < height; i++) {
186 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, temp);
188 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, temp);
250 rgbaBitmap.allocPixels(SkImageInfo::MakeN32(bitmap.width(), bitmap.height(),
283 ATRACE_FORMAT("Upload %ux%u Texture", bitmap.width(), bitmap.height());
349 needsAlloc |= updateLayout(bitmap.width(), bitmap.height(), internalFormat, format, target);
362 rgbaBitmap.height(), rgbaBitmap.getPixels());
367 bitmap.info().bytesPerPixel(), bitmap.width(), bitmap.height(), bitmap.pixels());
383 void Texture::wrap(GLuint id, uint32_t width, uint32_t height,
387 mHeight = height;