Lines Matching refs:bitmap
359 bool LayerRenderer::copyLayer(Layer* layer, SkBitmap* bitmap) { in copyLayer() argument
361 if (layer && bitmap->width() <= caches.maxTextureSize && in copyLayer()
362 bitmap->height() <= caches.maxTextureSize) { in copyLayer()
370 SkAutoLockPixels alp(*bitmap); in copyLayer()
382 switch (bitmap->config()) { in copyLayer()
419 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel()); in copyLayer()
427 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(), in copyLayer()
437 renderer.setViewport(bitmap->width(), bitmap->height()); in copyLayer()
439 bitmap->width(), bitmap->height(), !layer->isBlend()); in copyLayer()
442 renderer.translate(0.0f, bitmap->height()); in copyLayer()
456 bounds.set(0.0f, 0.0f, bitmap->width(), bitmap->height()); in copyLayer()
459 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format, in copyLayer()
460 type, bitmap->getPixels()); in copyLayer()