Lines Matching defs:width

140     if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
142 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
280 ATRACE_FORMAT("Upload %ux%u Texture", bitmap->width(), bitmap->height());
288 const bool resize = !regenerate || bitmap->width() != int(texture->width) ||
297 texture->width = bitmap->width();
306 texture->width, texture->height, GL_UNSIGNED_BYTE, bitmap->getPixels());
312 texture->width, texture->height, GL_UNSIGNED_SHORT_5_6_5, bitmap->getPixels());
318 texture->width, texture->height, GL_UNSIGNED_BYTE, bitmap->getPixels());
326 uploadLoFiTexture(resize, bitmap, texture->width, texture->height);
348 uint32_t width, uint32_t height) {
350 rgbaBitmap.allocPixels(SkImageInfo::MakeN32(width, height, bitmap->alphaType()));
357 width, height, GL_UNSIGNED_BYTE, rgbaBitmap.getPixels());
361 GLsizei width, GLsizei height, GLenum type, const GLvoid * data) {
362 const bool useStride = stride != width && Extensions::getInstance().hasUnpackRowLength();
363 if ((stride == width) || useStride) {
369 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
371 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
379 // if the stride doesn't match the width
381 GLvoid * temp = (GLvoid *) malloc(width * height * bpp);
387 memcpy(pDst, pSrc, width * bpp);
388 pDst += width * bpp;
393 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, temp);
395 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, temp);