Home
last modified time | relevance | path

Searched refs:tmpBitmap (Results 1 – 7 of 7) sorted by relevance

/third_party/flutter/skia/src/core/
DSkBitmap.cpp533 SkBitmap tmpBitmap; in extractAlpha()
555 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
556 if (!tmpBitmap.tryAllocPixels(allocator)) { in extractAlpha()
559 tmpBitmap.width(), tmpBitmap.height()); in extractAlpha()
562 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha()
566 tmpBitmap.swap(*dst); in extractAlpha()
578 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha()
580 if (!tmpBitmap.tryAllocPixels(allocator)) { in extractAlpha()
583 tmpBitmap.width(), tmpBitmap.height()); in extractAlpha()
586 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha()
[all …]
DSkBitmapDevice.cpp428 SkBitmap tmpBitmap; in drawBitmapRect() local
474 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) { in drawBitmapRect()
477 bitmapPtr = &tmpBitmap; in drawBitmapRect()
/third_party/skia/src/core/
DSkBitmap.cpp520 SkBitmap tmpBitmap; in extractAlpha()
542 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
543 if (!tmpBitmap.tryAllocPixels(allocator)) { in extractAlpha()
546 tmpBitmap.width(), tmpBitmap.height()); in extractAlpha()
549 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha()
553 tmpBitmap.swap(*dst); in extractAlpha()
565 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha()
567 if (!tmpBitmap.tryAllocPixels(allocator)) { in extractAlpha()
570 tmpBitmap.width(), tmpBitmap.height()); in extractAlpha()
573 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha()
[all …]
DSkBitmapDevice.cpp439 SkBitmap tmpBitmap; in drawImageRect() local
483 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) { in drawImageRect()
486 bitmapPtr = &tmpBitmap; in drawImageRect()
/third_party/vk-gl-cts/framework/platform/win32/
DtcuWin32EGLNativeDisplayFactory.cpp292 HBITMAP tmpBitmap = DE_NULL; in readScreenPixels() local
327 tmpBitmap = CreateCompatibleBitmap(screenDC, width, height); in readScreenPixels()
328 TCU_CHECK(tmpBitmap != DE_NULL); in readScreenPixels()
330 TCU_CHECK(SelectObject(tmpDC, tmpBitmap) != DE_NULL); in readScreenPixels()
349 …TCU_CHECK(GetDIBits(screenDC, tmpBitmap, 0, height, dst->getAccess().getDataPtr(), (BITMAPINFO*)&b… in readScreenPixels()
351 DeleteObject(tmpBitmap); in readScreenPixels()
352 tmpBitmap = DE_NULL; in readScreenPixels()
371 if (tmpBitmap) in readScreenPixels()
372 DeleteObject(tmpBitmap); in readScreenPixels()
/third_party/skia/third_party/externals/angle2/util/windows/win32/
DWin32Window.cpp633 HBITMAP tmpBitmap = nullptr; in takeScreenshot() local
655 tmpBitmap = CreateCompatibleBitmap(screenDC, mWidth, mHeight); in takeScreenshot()
656 error = tmpBitmap == nullptr; in takeScreenshot()
667 error = SelectObject(tmpDC, tmpBitmap) == nullptr; in takeScreenshot()
689 int getBitsResult = GetDIBits(screenDC, tmpBitmap, 0, mHeight, pixelData, in takeScreenshot()
694 if (tmpBitmap != nullptr) in takeScreenshot()
696 DeleteObject(tmpBitmap); in takeScreenshot()
/third_party/flutter/skia/third_party/externals/angle2/util/windows/win32/
DWin32Window.cpp625 HBITMAP tmpBitmap = nullptr; in takeScreenshot() local
647 tmpBitmap = CreateCompatibleBitmap(screenDC, mWidth, mHeight); in takeScreenshot()
648 error = tmpBitmap == nullptr; in takeScreenshot()
659 error = SelectObject(tmpDC, tmpBitmap) == nullptr; in takeScreenshot()
681 int getBitsResult = GetDIBits(screenDC, tmpBitmap, 0, mHeight, pixelData, in takeScreenshot()
686 if (tmpBitmap != nullptr) in takeScreenshot()
688 DeleteObject(tmpBitmap); in takeScreenshot()