Home
last modified time | relevance | path

Searched refs:fPicture (Results 1 – 25 of 51) sorted by relevance

123

/external/skia/gm/
Dpicture.cpp49 : fPicture(nullptr) in PictureGM()
54 fPicture = make_picture(); in onOnceBeforeDraw()
71 canvas->drawPicture(fPicture); in onDraw()
74 canvas->drawPicture(fPicture, &matrix, nullptr); in onDraw()
77 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
81 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
85 sk_sp<SkPicture> fPicture; member in PictureGM
100 : fPicture(nullptr) in PictureCullRectGM()
120 fPicture = rec.finishRecordingAsPicture(); in onOnceBeforeDraw()
122 SkASSERT(fPicture->cullRect().top() == 80); in onOnceBeforeDraw()
[all …]
Dpictureimagefilter.cpp77 fPicture = make_picture(); in onOnceBeforeDraw()
88 return make(fPicture, fPicture->cullRect(), sampling); in make()
97 sk_sp<SkImageFilter> pictureSource(SkImageFilters::Picture(fPicture)); in onDraw()
98 sk_sp<SkImageFilter> pictureSourceSrcRect(SkImageFilters::Picture(fPicture, srcRect)); in onDraw()
99 sk_sp<SkImageFilter> pictureSourceEmptyRect(SkImageFilters::Picture(fPicture, in onDraw()
125 paint.setImageFilter(make(fLCDPicture, fPicture->cullRect(), SkSamplingOptions())); in onDraw()
153 sk_sp<SkPicture> fPicture; member in PictureImageFilterGM
Dimage_pict.cpp61 sk_sp<SkPicture> fPicture; member in ImagePictGM
80 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
88 fImage0 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr, in onOnceBeforeDraw()
93 fImage1 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr, in onOnceBeforeDraw()
99 canvas->drawPicture(fPicture, &matrix, nullptr); in drawSet()
226 sk_sp<SkPicture> fPicture; member in ImageCacheratorGM
248 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
253 auto gen = fFactory(dContext, fPicture); in makeCaches()
269 auto gen = fFactory(dContext, fPicture); in makeCaches()
326 canvas->drawPicture(fPicture, &matrix, nullptr); in drawRow()
Dpictureshadercache.cpp57 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
70 paint.setShader(fPicture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in onDraw()
94 sk_sp<SkPicture> fPicture; member in PictureShaderCacheGM
Dimage_shader.cpp104 sk_sp<SkPicture> fPicture; member in ImageShaderGM
122 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
145 sk_sp<SkImage> image(gProcs[i](canvas->recordingContext(), fPicture.get(), info)); in onDraw()
/external/skqp/samplecode/
DSamplePdfFileViewer.cpp32 SkPicture* fPicture; // TODO(edisonn): multiple pages, one page / picture, make it an array member in PdfFileViewer
50 fPicture = nullptr; in PdfFileViewer()
54 SkSafeUnref(fPicture); in ~PdfFileViewer()
77 if (!fPicture) { in onDrawContent()
78 fPicture = LoadPdf(fFilename.c_str()); in onDrawContent()
80 if (fPicture) { in onDrawContent()
81 canvas->drawPicture(*fPicture); in onDrawContent()
/external/skqp/gm/
Dpicture.cpp44 : fPicture(nullptr) in PictureGM()
49 fPicture = make_picture(); in onOnceBeforeDraw()
66 canvas->drawPicture(fPicture); in onDraw()
69 canvas->drawPicture(fPicture, &matrix, nullptr); in onDraw()
72 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
76 canvas->drawPicture(fPicture, &matrix, &paint); in onDraw()
80 sk_sp<SkPicture> fPicture; member in PictureGM
Dpictureimagefilter.cpp66 fPicture = make_picture(); in onOnceBeforeDraw()
77 return make(fPicture, fPicture->cullRect(), fq); in make()
86 sk_sp<SkImageFilter> pictureSource(SkPictureImageFilter::Make(fPicture)); in onDraw()
87 sk_sp<SkImageFilter> pictureSourceSrcRect(SkPictureImageFilter::Make(fPicture, in onDraw()
89 sk_sp<SkImageFilter> pictureSourceEmptyRect(SkPictureImageFilter::Make(fPicture, in onDraw()
115 … paint.setImageFilter(make(fLCDPicture, fPicture->cullRect(), kNone_SkFilterQuality)); in onDraw()
143 sk_sp<SkPicture> fPicture; member in PictureImageFilterGM
Dimage_pict.cpp40 sk_sp<SkPicture> fPicture; member in ImagePictGM
59 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
67 fImage0 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr, in onOnceBeforeDraw()
72 fImage1 = SkImage::MakeFromPicture(fPicture, size, &matrix, nullptr, in onOnceBeforeDraw()
78 canvas->drawPicture(fPicture, &matrix, nullptr); in drawSet()
220 sk_sp<SkPicture> fPicture; member in ImageCacheratorGM
245 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
249 auto gen = fFactory(ctx, fPicture); in makeCaches()
254 gen = fFactory(ctx, fPicture); in makeCaches()
291 canvas->drawPicture(fPicture, &matrix, nullptr); in drawSet()
Dpictureshadercache.cpp44 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
57 paint.setShader(SkShader::MakePictureShader(fPicture, SkShader::kRepeat_TileMode, in onDraw()
82 sk_sp<SkPicture> fPicture; member in PictureShaderCacheGM
Dimage_shader.cpp79 sk_sp<SkPicture> fPicture; member in ImageShaderGM
97 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
120 sk_sp<SkImage> image(gProcs[i](canvas->getGrContext(), fPicture.get(), info)); in onDraw()
Dpictureimagegenerator.cpp116 fPicture = recorder.finishRecordingAsPicture(); in onOnceBeforeDraw()
162 SkImageGenerator::MakeFromPicture(configs[i].size, fPicture, &m, in onDraw()
185 sk_sp<SkPicture> fPicture; member in PictureGeneratorGM
/external/skqp/src/effects/imagefilters/
DSkPictureImageFilter.cpp32 , fPicture(std::move(picture)) in SkPictureImageFilter()
33 , fCropRect(fPicture ? fPicture->cullRect() : SkRect::MakeEmpty()) { in SkPictureImageFilter()
39 , fPicture(std::move(picture)) in SkPictureImageFilter()
77 bool hasPicture = (fPicture != nullptr); in flatten()
80 SkPicturePriv::Flatten(fPicture, buffer); in flatten()
88 if (!fPicture) { in onFilterImage()
125 canvas->drawPicture(fPicture); in onFilterImage()
138 return sk_sp<SkImageFilter>(new SkPictureImageFilter(fPicture, fCropRect, std::move(dstCS))); in onMakeColorSpace()
/external/skia/src/effects/imagefilters/
DSkPictureImageFilter.cpp25 , fPicture(std::move(picture)) in SkPictureImageFilter()
46 sk_sp<SkPicture> fPicture;
77 bool hasPicture = (fPicture != nullptr); in flatten()
80 SkPicturePriv::Flatten(fPicture, buffer); in flatten()
89 if (!fPicture) { in onFilterImage()
119 canvas->drawPicture(fPicture); in onFilterImage()
/external/skqp/src/core/
DSkMultiPictureDraw.cpp15 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw()
20 fPicture = SkRef(picture); in init()
36 data[i].fPicture->unref(); in Reset()
102 const SkPicture* picture = data.fPicture; in draw()
DSkPictureImageGenerator.cpp34 sk_sp<SkPicture> fPicture; member in SkPictureImageGenerator
67 , fPicture(std::move(picture)) { in SkPictureImageGenerator()
88 canvas->drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); in onGetPixels()
110 surface->getCanvas()->drawPicture(fPicture.get(), &matrix, fPaint.getMaybeNull()); in onGenerateTexture()
/external/skia/src/core/
DSkPictureImageGenerator.cpp33 sk_sp<SkPicture> fPicture; member in SkPictureImageGenerator
66 , fPicture(std::move(picture)) { in SkPictureImageGenerator()
87 canvas->drawPicture(fPicture, &fMatrix, fPaint.getMaybeNull()); in onGetPixels()
118 surface->getCanvas()->drawPicture(fPicture.get(), &matrix, fPaint.getMaybeNull()); in onGenerateTexture()
/external/skqp/src/shaders/
DSkPictureShader.cpp113 , fPicture(std::move(picture)) in SkPictureShader()
114 , fTile(tile ? *tile : fPicture->cullRect()) in SkPictureShader()
160 SkPicturePriv::Flatten(fPicture, buffer); in flatten()
170 SkASSERT(fPicture && !fPicture->cullRect().isEmpty()); in refBitmapShader()
238 sk_sp<SkImage> tileImage = SkImage::MakeFromPicture(fPicture, tileSize, &tileMatrix, in refBitmapShader()
304 return sk_sp<SkPictureShader>(new SkPictureShader(fPicture, fTmx, fTmy, &this->getLocalMatrix(), in onMakeColorSpace()
/external/skqp/tools/skiaserve/
DRequest.cpp103 if (fPicture) { in getBounds()
104 bounds = fPicture->cullRect().roundOut(); in getBounds()
196 fPicture = SkPicture::MakeFromStream(stream); in initPictureFromStream()
197 if (!fPicture) { in initPictureFromStream()
208 fDebugCanvas->drawPicture(fPicture); in initPictureFromStream()
DRequest.h45 bool hasPicture() const { return SkToBool(fPicture.get()); } in hasPicture()
73 sk_sp<SkPicture> fPicture; member
/external/skia/tools/skiaserve/
DRequest.cpp110 if (fPicture) { in getBounds()
111 bounds = fPicture->cullRect().roundOut(); in getBounds()
203 fPicture = SkPicture::MakeFromStream(stream); in initPictureFromStream()
204 if (!fPicture) { in initPictureFromStream()
215 fDebugCanvas->drawPicture(fPicture); in initPictureFromStream()
DRequest.h45 bool hasPicture() const { return SkToBool(fPicture.get()); } in hasPicture()
73 sk_sp<SkPicture> fPicture; member
/external/skia/src/shaders/
DSkPictureShader.cpp112 , fPicture(std::move(picture)) in SkPictureShader()
113 , fTile(tile ? *tile : fPicture->cullRect()) in SkPictureShader()
162 SkPicturePriv::Flatten(fPicture, buffer); in flatten()
265 fPicture->uniqueID(), fTile, info.tileScale); in rasterShader()
269 image = info.makeImage(SkSurface::MakeRaster(info.imageInfo), fPicture.get()); in rasterShader()
275 SkPicturePriv::AddedToCache(fPicture.get()); in rasterShader()
396 builder[3] = fPicture->uniqueID(); in asFragmentProcessor()
416 fPicture.get()); in asFragmentProcessor()
/external/skia/bench/
DPictureNestingBench.cpp150 fPicture = recorder.finishRecordingAsPicture(); in onDelayedSetup()
155 canvas->drawPicture(fPicture); in onDraw()
160 sk_sp<SkPicture> fPicture; member in PictureNestingPlayback
/external/skqp/bench/
DPictureNestingBench.cpp150 fPicture = recorder.finishRecordingAsPicture(); in onDelayedSetup()
155 canvas->drawPicture(fPicture); in onDraw()
160 sk_sp<SkPicture> fPicture; member in PictureNestingPlayback

123