HomeSort by relevance Sort by last modified time
    Searched refs:SkImage (Results 51 - 75 of 283) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/skia/gm/
makecolorspace.cpp 12 #include "SkImage.h"
15 sk_sp<SkImage> make_raster_image(const char* path, SkTransferFunctionBehavior behavior) {
26 return SkImage::MakeFromBitmap(bitmap);
29 sk_sp<SkImage> make_color_space(sk_sp<SkImage> orig, sk_sp<SkColorSpace> colorSpace,
31 sk_sp<SkImage> xform = orig->makeColorSpace(colorSpace, behavior);
64 sk_sp<SkImage> opaqueImage = GetResourceAsImage("mandrill_128.png");
65 sk_sp<SkImage> premulImage = GetResourceAsImage("color_wheel.png");
verylargebitmap.cpp 25 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) {
31 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) {
34 return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(),
36 SkImage::BitDepth::kU8,
40 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
44 sk_sp<SkImage> image(proc(width, height, colors));
localmatriximagefilter.cpp 17 static sk_sp<SkImage> make_image(SkCanvas* rootCanvas) {
31 static void show_image(SkCanvas* canvas, SkImage* image, sk_sp<SkImageFilter> filter) {
52 sk_sp<SkImage> image0(make_image(canvas));
filterbug.cpp 11 static const sk_sp<SkImage> make_image(int firstBlackRow, int lastBlackRow) {
27 return SkImage::MakeFromBitmap(bm);
93 sk_sp<SkImage> fTop;
94 sk_sp<SkImage> fBot;
image_pict.cpp 10 #include "SkImage.h"
43 sk_sp<SkImage> fImage0;
44 sk_sp<SkImage> fImage1;
69 fImage0 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr,
70 SkImage::BitDepth::kU8, srgbColorSpace);
74 fImage1 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr,
75 SkImage::BitDepth::kU8, srgbColorSpace);
114 SkImage::BitDepth::kU8,
160 sk_sp<SkImage> image(surface->makeImageSnapshot());
224 sk_sp<SkImage> fImage
    [all...]
drawbitmaprect.cpp 14 #include "SkImage.h"
35 static sk_sp<SkImage> makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) {
87 image->asLegacyBitmap(&tempBM, SkImage::kRO_LegacyBitmapMode);
96 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR,
101 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR,
114 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR,
119 static void imagesubsetproc(SkCanvas* canvas, SkImage* image, const SkBitmap& bm,
126 if (sk_sp<SkImage> subset = image->makeSubset(srcR)) {
131 typedef void DrawRectRectProc(SkCanvas*, SkImage*, const SkBitmap&, const SkIRect&, const SkRect&,
148 sk_sp<SkImage> fImage
    [all...]
simple_magnification.cpp 14 static sk_sp<SkImage> make_image(GrContext* context, int size, GrSurfaceOrigin origin) {
50 return SkImage::MakeFromBitmap(bm);
85 void draw(SkCanvas* canvas, sk_sp<SkImage> image, const SkIPoint& offset, int inset) {
105 sk_sp<SkImage> bottomLImg = make_image(context, kImgSize, kBottomLeft_GrSurfaceOrigin);
106 sk_sp<SkImage> topLImg = make_image(context, kImgSize, kTopLeft_GrSurfaceOrigin);
savelayer.cpp 168 using MaskMakerFunc = sk_sp<SkImage> (*)(int size);
170 [](int size) -> sk_sp<SkImage> {
176 [](int size) -> sk_sp<SkImage> {
182 [](int size) -> sk_sp<SkImage> {
185 return SkImage::MakeFromPicture(recorder.finishRecordingAsPicture(),
188 SkImage::BitDepth::kU8,
213 sk_sp<SkImage> mask = maskMaker(kSize);
  /external/skia/src/core/
SkColorSpaceXformer.cpp 13 #include "SkImage.h"
41 // 1) to avoid redundant work - the inputs are a DAG, not a tree (e.g. same SkImage drawn multiple
97 sk_sp<SkImage> SkColorSpaceXformer::apply(const SkImage* src) {
99 return this->cachedApply<SkImage>(src, &fImageCache,
100 [](const SkImage* img, SkColorSpaceXformer* xformer) {
105 sk_sp<SkImage> SkColorSpaceXformer::apply(const SkBitmap& src) {
107 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(src, kNever_SkCopyPixelsMode);
112 sk_sp<SkImage> xformed = image->makeColorSpace(fDst, SkTransferFunctionBehavior::kIgnore);
SkSpecialImage.h 22 class SkImage;
34 * This is a restricted form of SkImage solely intended for internal use. It
35 * differs from SkImage in that:
40 * It is similar to SkImage in that it abstracts how the pixels are stored/represented.
73 sk_sp<SkImage>,
111 * Create an SkImage from the contents of this special image optionally extracting a subset.
118 sk_sp<SkImage> asImage(const SkIRect* subset = nullptr) const;
SkImageCacherator.h 11 #include "SkImage.h"
25 * Interface used by GrImageTextureMaker to construct textures from instances of SkImage
52 SkImage::CachingHint, bool willBeMipped,
SkLiteRecorder.h 68 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) override;
69 void onDrawImageLattice(const SkImage*, const Lattice&, const SkRect&, const SkPaint*) override;
70 void onDrawImageNine(const SkImage*, const SkIRect&, const SkRect&, const SkPaint*) override;
71 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*,
78 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[],
SkPictureImageGenerator.cpp 20 const SkPaint* paint, SkImage::BitDepth bitDepth,
26 if (SkImage::BitDepth::kF16 == bitDepth && (!colorSpace || !colorSpace->gammaIsLinear())) {
35 if (SkImage::BitDepth::kF16 == bitDepth) {
89 SkImage::BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) {
129 sk_sp<SkImage> image(surface->makeImageSnapshot());
SkLiteRecorder.cpp 133 fDL->drawImage(SkImage::MakeFromBitmap(bm), x,y, paint);
138 fDL->drawImageNine(SkImage::MakeFromBitmap(bm), center, dst, paint);
143 fDL->drawImageRect(SkImage::MakeFromBitmap(bm), src, dst, paint, constraint);
148 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint);
151 void SkLiteRecorder::onDrawImage(const SkImage* img,
156 void SkLiteRecorder::onDrawImageNine(const SkImage* img,
161 void SkLiteRecorder::onDrawImageRect(const SkImage* img,
166 void SkLiteRecorder::onDrawImageLattice(const SkImage* img,
187 void SkLiteRecorder::onDrawAtlas(const SkImage* atlas,
  /external/skia/tools/viewer/
ImageSlide.cpp 12 #include "SkImage.h"
29 fImage = SkImage::MakeFromEncoded(encoded);
  /frameworks/base/libs/hwui/hwui/
Bitmap.h 20 #include <SkImage.h>
25 #include <SkImage.h>
99 // makeImage creates or returns a cached SkImage. Can be invoked from UI or render thread.
101 sk_sp<SkImage> makeImage();
132 sk_sp<SkImage> mImage; // Cache is used only for HW Bitmaps with Skia pipeline.
  /external/skia/src/gpu/
SkGpuDevice.h 96 void drawAtlas(const SkImage* atlas, const SkRSXform[], const SkRect[],
100 void drawImage(const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override;
101 void drawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
104 void drawImageNine(const SkImage* image, const SkIRect& center,
109 void drawImageLattice(const SkImage*, const SkCanvas::Lattice&,
115 SkImage*, const SkMatrix&) override;
117 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override;
175 bool shouldTileImage(const SkImage* image, const SkRect* srcRectPtr,
  /external/skia/src/image/
SkImage_Gpu.h 34 sk_sp<SkImage> onMakeSubset(const SkIRect&) const override;
60 sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>, SkColorType,
  /external/skia/tests/
SkImageTest.cpp 17 sk_sp<SkImage> image;
29 image = SkImage::MakeFromBitmap(dstBitmap);
DeviceTest.cpp 24 static sk_sp<SkSpecialImage> MakeSpecial(SkBaseDevice* dev, SkImage* img) {
54 // Create a raster-backed special image from a raster-backed SkImage
55 sk_sp<SkImage> image(SkImage::MakeFromBitmap(bm));
98 // Create a gpu-backed special image from a raster-backed SkImage
99 sk_sp<SkImage> image(SkImage::MakeFromBitmap(bm));
108 // Create a gpu-backed special image from a gpu-backed SkImage
ImageIsOpaqueTest.cpp 17 #include "SkImage.h"
78 sk_sp<SkImage> image(surface->makeImageSnapshot());
126 SkImage::MakeRasterCopy(pmap),
129 SkImage::MakeFromPicture(make_picture(), { 10, 10 }, nullptr, nullptr,
130 SkImage::BitDepth::kU8,
137 REPORTER_ASSERT(reporter, SkImage::MakeRasterCopy({
  /external/skia/tools/
Resources.cpp 12 #include "SkImage.h"
41 sk_sp<SkImage> GetResourceAsImage(const char* resource) {
44 return SkImage::MakeFromEncoded(resourceData);
  /frameworks/base/libs/hwui/pipeline/skia/
LayerDrawable.cpp 44 sk_sp<SkImage> layerImage;
52 layerImage = SkImage::MakeFromTexture(context, backendTexture, kTopLeft_GrSurfaceOrigin,
  /frameworks/base/libs/hwui/tests/unit/
FatalTestCanvas.h 86 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count,
93 void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkPaint*) {
96 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*,
100 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, const SkPaint*) {
103 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst,
  /external/skia/src/pipe/
SkPipeCanvas.h 12 #include "SkImage.h"
69 int findImage(SkImage* image) const { return fImages.find(image->uniqueID()); }
72 int findOrDefineImage(SkImage*) override;
107 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[],
132 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*) override;
133 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
135 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst,
137 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst,

Completed in 1215 milliseconds

1 23 4 5 6 7 8 91011>>