Home
last modified time | relevance | path

Searched refs:originalPixmap (Results 1 – 4 of 4) sorted by relevance

/external/skqp/src/image/
DSkImage_Gpu.cpp495 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/
DSkImage_Gpu.cpp515 const SkPixmap& originalPixmap, bool buildMips, in MakeCrossContextFromPixmap() argument
520 return SkImage::MakeRasterCopy(originalPixmap); in MakeCrossContextFromPixmap()
527 return SkImage::MakeRasterCopy(originalPixmap); in MakeCrossContextFromPixmap()
535 const SkPixmap* pixmap = &originalPixmap; in MakeCrossContextFromPixmap()
538 int maxDim = SkTMax(originalPixmap.width(), originalPixmap.height()); in MakeCrossContextFromPixmap()
541 int newWidth = SkTMin(static_cast<int>(originalPixmap.width() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
542 int newHeight = SkTMin(static_cast<int>(originalPixmap.height() * scale), maxTextureSize); in MakeCrossContextFromPixmap()
543 SkImageInfo info = originalPixmap.info().makeWH(newWidth, newHeight); in MakeCrossContextFromPixmap()
544 if (!resized.tryAlloc(info) || !originalPixmap.scalePixels(resized, kLow_SkFilterQuality)) { in MakeCrossContextFromPixmap()
/external/skia/tools/fiddle/
Dfiddle_main.cpp136 SkPixmap originalPixmap; in setup_backend_objects() local
137 SkPixmap* pixmap = &originalPixmap; in setup_backend_objects()
138 if (!bm.peekPixels(&originalPixmap)) { in setup_backend_objects()
/external/skqp/tools/fiddle/
Dfiddle_main.cpp136 SkPixmap originalPixmap; in setup_backend_objects() local
137 SkPixmap* pixmap = &originalPixmap; in setup_backend_objects()
138 if (!bm.peekPixels(&originalPixmap)) { in setup_backend_objects()