Searched refs:originalPixmap (Results 1 – 4 of 4) sorted by relevance
/external/skqp/src/image/ |
D | SkImage_Gpu.cpp | 495 const SkPixmap& originalPixmap, bool buildMips, in MakeCrossContextFromPixmap() argument 500 return SkImage::MakeRasterCopy(originalPixmap); in MakeCrossContextFromPixmap() 507 return SkImage::MakeRasterCopy(originalPixmap); in MakeCrossContextFromPixmap() 510 const SkPixmap* pixmap = &originalPixmap; in MakeCrossContextFromPixmap() 513 int maxDim = SkTMax(originalPixmap.width(), originalPixmap.height()); in MakeCrossContextFromPixmap() 516 int newWidth = SkTMin(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 517 int newHeight = SkTMin(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 518 SkImageInfo info = originalPixmap.info().makeWH(newWidth, newHeight); in MakeCrossContextFromPixmap() 519 if (!resized.tryAlloc(info) || !originalPixmap.scalePixels(resized, kLow_SkFilterQuality)) { in MakeCrossContextFromPixmap()
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 636 const SkPixmap& originalPixmap, bool buildMips, in MakeCrossContextFromPixmap() argument 640 return SkImage::MakeRasterCopy(originalPixmap); in MakeCrossContextFromPixmap() 648 const SkPixmap* pixmap = &originalPixmap; in MakeCrossContextFromPixmap() 651 int maxDim = std::max(originalPixmap.width(), originalPixmap.height()); in MakeCrossContextFromPixmap() 654 int newWidth = std::min(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 655 int newHeight = std::min(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap() 656 SkImageInfo info = originalPixmap.info().makeWH(newWidth, newHeight); in MakeCrossContextFromPixmap() 658 if (!resized.tryAlloc(info) || !originalPixmap.scalePixels(resized, sampling)) { in MakeCrossContextFromPixmap()
|
/external/skia/tools/fiddle/ |
D | fiddle_main.cpp | 133 SkPixmap originalPixmap; in setup_backend_objects() local 134 SkPixmap* pixmap = &originalPixmap; in setup_backend_objects() 135 if (!bm.peekPixels(&originalPixmap)) { in setup_backend_objects()
|
/external/skqp/tools/fiddle/ |
D | fiddle_main.cpp | 136 SkPixmap originalPixmap; in setup_backend_objects() local 137 SkPixmap* pixmap = &originalPixmap; in setup_backend_objects() 138 if (!bm.peekPixels(&originalPixmap)) { in setup_backend_objects()
|