Home
last modified time | relevance | path

Searched refs:setInfo (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/skia/tests/
DBitmapTest.cpp35 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels()
68 bm.setInfo(info); in test_allocpixels()
76 bm.setInfo(info, explicitRowBytes); in test_allocpixels()
85 bm.setInfo(info, 0); in test_allocpixels()
92 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
119 success = bm.setInfo(imageInfo, imageInfo.minRowBytes() + rowBytesPadding); in test_allocpixels()
138 REPORTER_ASSERT(reporter, bm.setInfo(info)); in test_bigwidth()
139 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType))); in test_bigwidth()
147 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType))); in test_bigwidth()
155 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height)); in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DBitmapTest.cpp35 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels()
68 bm.setInfo(info); in test_allocpixels()
76 bm.setInfo(info, explicitRowBytes); in test_allocpixels()
85 bm.setInfo(info, 0); in test_allocpixels()
92 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
102 REPORTER_ASSERT(reporter, bm.setInfo(info)); in test_bigwidth()
103 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType))); in test_bigwidth()
111 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType))); in test_bigwidth()
122 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height)); in DEF_TEST()
/third_party/skia/docs/examples/
DBitmap_refColorSpace.cpp8 bitmap1.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
10 bitmap2.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
DBitmap_ComputeIsOpaque.cpp8 bitmap.setInfo(SkImageInfo::Make(2, 2, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
15 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
DBitmap_isOpaque.cpp10 bitmap.setInfo(SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
17 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
DImageInfo_isOpaque.cpp11 bitmap.setInfo(imageInfo); in draw()
19 bitmap.setInfo(imageInfo); in draw()
DBitmap_colorType.cpp11 bitmap.setInfo(SkImageInfo::MakeA8(16, 32)); in draw()
DBitmap_rowBytesAsPixels.cpp9 bitmap.setInfo(SkImageInfo::MakeN32(1, 1, kPremul_SkAlphaType), rowBytes); in draw()
DBitmap_rowBytes.cpp9 bool result = bitmap.setInfo(SkImageInfo::MakeA8(4, 4), rowBytes); in draw()
DBitmap_width.cpp9 bitmap.setInfo(info); in draw()
DBitmap_height.cpp9 bitmap.setInfo(info); in draw()
DBitmap_empty.cpp10 bitmap.setInfo(SkImageInfo::MakeA8(width, height)); in draw()
DBitmap_isNull.cpp9 bitmap.setInfo(SkImageInfo::MakeA8(8, 8)); in draw()
/third_party/flutter/skia/docs/examples/
DBitmap_refColorSpace.cpp8 bitmap1.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
10 bitmap2.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
DBitmap_ComputeIsOpaque.cpp8 bitmap.setInfo(SkImageInfo::Make(2, 2, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
15 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
DBitmap_isOpaque.cpp10 bitmap.setInfo(SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType)); in draw()
17 bitmap.setInfo(bitmap.info().makeAlphaType(kOpaque_SkAlphaType)); in draw()
DImageInfo_isOpaque.cpp11 bitmap.setInfo(imageInfo); in draw()
19 bitmap.setInfo(imageInfo); in draw()
DBitmap_colorType.cpp11 bitmap.setInfo(SkImageInfo::MakeA8(16, 32)); in draw()
DBitmap_rowBytesAsPixels.cpp9 bitmap.setInfo(SkImageInfo::MakeN32(1, 1, kPremul_SkAlphaType), rowBytes); in draw()
DBitmap_rowBytes.cpp9 bool result = bitmap.setInfo(SkImageInfo::MakeA8(4, 4), rowBytes); in draw()
DBitmap_height.cpp9 bitmap.setInfo(info); in draw()
DBitmap_width.cpp9 bitmap.setInfo(info); in draw()
DBitmap_empty.cpp10 bitmap.setInfo(SkImageInfo::MakeA8(width, height)); in draw()
/third_party/flutter/skia/src/core/
DSkBitmap.cpp109 bool SkBitmap::setInfo(const SkImageInfo& info, size_t rowBytes) { in setInfo() function in SkBitmap
255 if (!this->setInfo(requestedInfo, rowBytes)) { in tryAllocPixels()
280 if (!this->setInfo(requestedInfo)) { in tryAllocPixelsFlags()
308 if (!this->setInfo(requestedInfo, rb)) { in installPixels()
459 dst.setInfo(this->info().makeWH(r.width(), r.height()), this->rowBytes()); in extractSubset()
555 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
578 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha()
/third_party/skia/src/core/
DSkBitmap.cpp107 bool SkBitmap::setInfo(const SkImageInfo& info, size_t rowBytes) { in setInfo() function in SkBitmap
253 if (!this->setInfo(requestedInfo, rowBytes)) { in tryAllocPixels()
278 if (!this->setInfo(requestedInfo)) { in tryAllocPixelsFlags()
306 if (!this->setInfo(requestedInfo, rb)) { in installPixels()
445 dst.setInfo(this->info().makeDimensions(r.size()), this->rowBytes()); in extractSubset()
542 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
565 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha()

123456