Lines Matching defs:image
29 #include "src/image/SkImage_Base.h"
30 #include "src/image/SkImage_Gpu.h"
31 #include "src/image/SkSurface_Gpu.h"
260 sk_sp<SkImage> image(surface->makeImageSnapshot());
261 REPORTER_ASSERT(reporter, image);
262 if (image) {
263 REPORTER_ASSERT(reporter, image->alphaType() == expectedAlphaType);
344 // expect a new image, since we claimed we would write
350 // expect a new(er) image, since we claimed we would write
519 // be recycling a texture that is held by an existing image.
547 sk_sp<SkImage> image(surface->makeImageSnapshot());
548 REPORTER_ASSERT(reporter, !as_IB(image)->isTextureBacked());
550 REPORTER_ASSERT(reporter, !as_IB(image)->isTextureBacked());
555 sk_sp<SkImage> image(surface->makeImageSnapshot());
557 REPORTER_ASSERT(reporter, as_IB(image)->isTextureBacked());
558 GrBackendTexture backendTex = image->getBackendTexture(false);
561 REPORTER_ASSERT(reporter, as_IB(image)->isTextureBacked());
562 GrBackendTexture backendTex2 = image->getBackendTexture(false);
574 static SkBudgeted is_budgeted(SkImage* image, GrRecordingContext* rc) {
575 return sk_gpu_test::GetTextureImageProxy(image, rc)->isBudgeted();
586 sk_sp<SkImage> image(surface->makeImageSnapshot());
588 // Initially the image shares a texture with the surface, and the
591 REPORTER_ASSERT(reporter, budgeted == is_budgeted(image.get(), dContext));
598 REPORTER_ASSERT(reporter, budgeted == is_budgeted(image.get(), dContext));
646 sk_sp<SkImage> image(surface->makeImageSnapshot());
648 REPORTER_ASSERT(reporter, image->peekPixels(&pm));
655 REPORTER_ASSERT(reporter, image->uniqueID() != image2->uniqueID());
791 // Snaps an image from a surface and then makes a SurfaceContext from the image's texture.
1117 sk_sp<SkImage> image = surface->makeImageSnapshot();
1120 image->asLegacyBitmap(&bitmap);
1151 // assert: if a given imageinfo is valid for a surface, then it must be valid for an image
1160 SkDebugf("image failed: [%08X %08X] %14s %s\n",