Lines Matching refs:bitmap
73 bool uploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in uploadHardwareBitmap() argument
77 bool result = onUploadHardwareBitmap(bitmap, format, graphicBuffer); in uploadHardwareBitmap()
95 virtual bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format,
167 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap() argument
186 ATRACE_FORMAT("CPU -> gralloc transfer (%dx%d)", bitmap.width(), bitmap.height()); in onUploadHardwareBitmap()
196 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bitmap.width(), bitmap.height(), in onUploadHardwareBitmap()
197 format.format, format.type, bitmap.getPixels()); in onUploadHardwareBitmap()
265 bool onUploadHardwareBitmap(const SkBitmap& bitmap, const FormatInfo& format, in onUploadHardwareBitmap() argument
272 bitmap.pixmap(), reinterpret_cast<AHardwareBuffer*>(graphicBuffer.get())); in onUploadHardwareBitmap()
351 SkBitmap bitmap; in makeHwCompatible() local
353 bitmap.allocPixels(info.makeColorType(kN32_SkColorType)); in makeHwCompatible()
355 SkCanvas canvas(bitmap); in makeHwCompatible()
359 return bitmap; in makeHwCompatible()
387 SkBitmap bitmap = makeHwCompatible(format, sourceBitmap); in allocateHardwareBitmap() local
389 static_cast<uint32_t>(bitmap.width()), static_cast<uint32_t>(bitmap.height()), in allocateHardwareBitmap()
404 if (!sUploader->uploadHardwareBitmap(bitmap, format, buffer)) { in allocateHardwareBitmap()
407 return Bitmap::createFrom(buffer, bitmap.colorType(), bitmap.refColorSpace(), in allocateHardwareBitmap()
408 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()