Home | History | Annotate | Download | only in hwui

Lines Matching refs:bitmap

381 bool LayerRenderer::copyLayer(Layer* layer, SkBitmap* bitmap) {
383 if (layer && bitmap->width() <= caches.maxTextureSize &&
384 bitmap->height() <= caches.maxTextureSize) {
392 SkAutoLockPixels alp(*bitmap);
404 switch (bitmap->config()) {
441 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
449 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(),
459 renderer.setViewport(bitmap->width(), bitmap->height());
461 bitmap->width(), bitmap->height(), !layer->isBlend());
464 renderer.translate(0.0f, bitmap->height());
478 bounds.set(0.0f, 0.0f, bitmap->width(), bitmap->height());
481 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
482 type, bitmap->getPixels());
494 ALOGD("GL error while copying layer into bitmap = 0x%x", error);