Home
last modified time | relevance | path

Searched refs:SkPicture (Results 1 – 25 of 145) sorted by relevance

123456

/external/skia/src/core/
DSkPicture.cpp25 DECLARE_SKMESSAGEBUS_MESSAGE(SkPicture::DeletionMessage);
29 SkPicture::SkPicture() : fUniqueID(0) {} in SkPicture() function in SkPicture
31 SkPicture::~SkPicture() { in ~SkPicture()
37 SkPicture::DeletionMessage msg = { (int32_t)id }; in ~SkPicture()
38 SkMessageBus<SkPicture::DeletionMessage>::Post(msg); in ~SkPicture()
42 uint32_t SkPicture::uniqueID() const { in uniqueID()
60 SkPictInfo SkPicture::createHeader() const { in createHeader()
80 bool SkPicture::IsValidPictInfo(const SkPictInfo& info) { in IsValidPictInfo()
90 bool SkPicture::InternalOnly_StreamIsSKP(SkStream* stream, SkPictInfo* pInfo) { in InternalOnly_StreamIsSKP()
115 bool SkPicture::InternalOnly_BufferIsSKP(SkReadBuffer* buffer, SkPictInfo* pInfo) { in InternalOnly_BufferIsSKP()
[all …]
DSkRecordDraw.h30 void SkRecordDraw(const SkRecord&, SkCanvas*, SkPicture const* const drawablePicts[],
32 const SkBBoxHierarchy*, SkPicture::AbortCallback*);
40 SkPicture const* const drawablePicts[], int drawableCount,
48 explicit Draw(SkCanvas* canvas, SkPicture const* const drawablePicts[],
66 SkPicture const* const* drawablePicts() const { return fDrawablePicts; } in drawablePicts()
75 SkPicture const* const* fDrawablePicts;
DSkBigPicture.h21 class SkBigPicture final : public SkPicture {
26 SnapshotArray(const SkPicture* pics[], int count) : fPics(pics), fCount(count) {} in SnapshotArray()
29 const SkPicture* const* begin() const { return fPics; } in begin()
32 SkAutoTMalloc<const SkPicture*> fPics;
73 SkPicture const* const* drawablePicts() const;
DSkPictureShader.h15 class SkPicture; variable
25 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*,
43 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const SkRect*);
49 sk_sp<SkPicture> fPicture;
DSkPipe.h37 sk_sp<SkData> writePicture(SkPicture*);
40 void writePicture(SkPicture*, SkWStream*);
66 sk_sp<SkPicture> readPicture(const SkData* data) { in readPicture()
74 sk_sp<SkPicture> readPicture(const void*, size_t);
DSkDeduper.h14 class SkPicture; variable
24 virtual int findOrDefinePicture(SkPicture*) = 0;
34 virtual SkPicture* getPicture(int) = 0;
DSkPictureImageGenerator.h15 static std::unique_ptr<SkImageGenerator> Make(const SkISize&, sk_sp<SkPicture>, const SkMatrix*,
29 SkPictureImageGenerator(const SkImageInfo& info, sk_sp<SkPicture>, const SkMatrix*,
32 sk_sp<SkPicture> fPicture;
DSkMiniRecorder.cpp19 class SkEmptyPicture final : public SkPicture {
31 class SkMiniPicture final : public SkPicture {
87 sk_sp<SkPicture> SkMiniRecorder::detachAsPicture(const SkRect& cull) { in detachAsPicture()
94 static SkPicture* empty; in detachAsPicture()
/external/skia/include/core/
DSkPicture.h38 class SK_API SkPicture : public SkRefCnt {
40 virtual ~SkPicture();
61 static sk_sp<SkPicture> MakeFromStream(SkStream*, SkImageDeserializer*);
62 static sk_sp<SkPicture> MakeFromStream(SkStream*);
63 static sk_sp<SkPicture> MakeFromData(const void* data, size_t size,
65 static sk_sp<SkPicture> MakeFromData(const SkData* data, SkImageDeserializer* = nullptr);
75 static sk_sp<SkPicture> MakeFromBuffer(SkReadBuffer&);
172 SkPicture();
178 static sk_sp<SkPicture> MakeFromStream(SkStream*, SkImageDeserializer*, SkTypefacePlayback*);
224 static sk_sp<SkPicture> Forwardport(const SkPictInfo&,
DSkMultiPictureDraw.h16 class SkPicture; variable
42 const SkPicture* picture,
61 const SkPicture* fPicture; // reffed
65 void init(SkCanvas*, const SkPicture*, const SkMatrix*, const SkPaint*);
DSkPictureAnalyzer.h20 class SkPicture; variable
29 explicit SkPictureGpuAnalyzer(const sk_sp<SkPicture>& picture,
35 void analyzePicture(const SkPicture*);
DSkDrawable.h16 class SkPicture; variable
38 SkPicture* newPictureSnapshot();
76 virtual SkPicture* onNewPictureSnapshot();
/external/skia/tests/
DPictureTest.cpp56 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_images_are_found_by_willPlayBackBitmaps()
69 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_analysis()
99 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture()
108 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture()
175 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_gpu_veto()
366 void check_save_state(skiatest::Reporter* reporter, SkPicture* picture, in check_save_state()
385 static sk_sp<SkPicture> Copy(SkPictureRecorder* recorder) { in Copy()
410 static void check_balance(skiatest::Reporter* reporter, SkPicture* picture) { in check_balance()
441 sk_sp<SkPicture> copy(SkPictureRecorderReplayTester::Copy(&recorder)); in DEF_TEST()
448 sk_sp<SkPicture> final(recorder.finishRecordingAsPicture()); in DEF_TEST()
[all …]
/external/skia/include/effects/
DSkPictureImageFilter.h19 static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture);
25 static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture, const SkRect& cropRect);
34 static sk_sp<SkImageFilter> MakeForLocalSpace(sk_sp<SkPicture> picture,
58 explicit SkPictureImageFilter(sk_sp<SkPicture> picture);
59 SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect,
70 sk_sp<SkPicture> fPicture;
/external/skia/gm/
Dmultipicturedraw.cpp45 static sk_sp<SkPicture> make_hex_plane_picture(SkColor fillColor) { in make_hex_plane_picture()
90 static sk_sp<SkPicture> make_single_layer_hex_plane_picture() { in make_single_layer_hex_plane_picture()
151 static sk_sp<SkPicture> make_tri_picture() { in make_tri_picture()
180 static sk_sp<SkPicture> make_sub_picture(const SkPicture* tri) { in make_sub_picture()
212 static sk_sp<SkPicture> make_sierpinski_picture() { in make_sierpinski_picture()
213 sk_sp<SkPicture> pic(make_tri_picture()); in make_sierpinski_picture()
266 typedef void (*PFContentMtd)(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]);
269 static void no_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in no_clip()
274 static void rect_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in rect_clip()
286 static void rrect_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in rrect_clip()
[all …]
Dimage_shader.cpp27 typedef sk_sp<SkImage> (*ImageMakerProc)(GrContext*, SkPicture*, const SkImageInfo&);
29 static sk_sp<SkImage> make_raster(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_raster()
36 static sk_sp<SkImage> make_texture(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_texture()
49 static sk_sp<SkImage> make_pict_gen(GrContext*, SkPicture* pic, const SkImageInfo& info) { in make_pict_gen()
55 static sk_sp<SkImage> make_encode_gen(GrContext* ctx, SkPicture* pic, const SkImageInfo& info) { in make_encode_gen()
79 sk_sp<SkPicture> fPicture;
/external/skia/src/effects/
DSkPictureImageFilter.cpp17 sk_sp<SkImageFilter> SkPictureImageFilter::Make(sk_sp<SkPicture> picture) { in Make()
21 sk_sp<SkImageFilter> SkPictureImageFilter::Make(sk_sp<SkPicture> picture, in Make()
29 sk_sp<SkImageFilter> SkPictureImageFilter::MakeForLocalSpace(sk_sp<SkPicture> picture, in MakeForLocalSpace()
38 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture) in SkPictureImageFilter()
46 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, in SkPictureImageFilter()
57 sk_sp<SkPicture> picture; in CreateProc()
60 if (buffer.isCrossProcess() && SkPicture::PictureIOSecurityPrecautionsEnabled()) { in CreateProc()
64 picture = SkPicture::MakeFromBuffer(buffer); in CreateProc()
89 if (buffer.isCrossProcess() && SkPicture::PictureIOSecurityPrecautionsEnabled()) { in flatten()
/external/skia/bench/
DRecordingBench.h17 PictureCentricBench(const char* name, const SkPicture*);
25 sk_sp<const SkPicture> fSrc;
33 RecordingBench(const char* name, const SkPicture*, bool useBBH, bool lite);
47 PipingBench(const char* name, const SkPicture*);
DSKPBench.h23 SKPBench(const char* name, const SkPicture*, const SkIRect& devClip, SkScalar scale,
45 const SkPicture* picture() const { return fPic.get(); } in picture()
50 sk_sp<const SkPicture> fPic;
/external/skia/samplecode/
DSamplePdfFileViewer.cpp34 SkPicture* fPicture; // TODO(edisonn): multiple pages, one page / picture, make it an array
36 static SkPicture* LoadPdf(const char path[]) { in LoadPdf()
42 SkPicture* pic = new SkPicture; in LoadPdf()
DSamplePictFile.cpp123 SkPicture** picture = fPictures + fBBox; in onDrawContent()
157 SkPicture* fPictures[kBBoxTypeCount];
163 sk_sp<SkPicture> LoadPicture(const char path[], BBoxType bbox) { in LoadPicture()
164 sk_sp<SkPicture> pic; in LoadPicture()
178 pic = SkPicture::MakeFromStream(&stream); in LoadPicture()
188 sk_sp<SkPicture> p2(recorder.finishRecordingAsPicture()); in LoadPicture()
DGMSampleView.cpp50 static sk_sp<SkPicture> round_trip_serialize(SkPicture* src) { in round_trip_serialize()
51 return SkPicture::MakeFromData(src->serialize().get()); in round_trip_serialize()
70 sk_sp<SkPicture> pic = recorder.finishRecordingAsPicture(); in onDrawContent()
/external/skia/src/utils/
DSkMultiPictureDocumentReader.cpp47 SkTArray<sk_sp<SkPicture>>* fDest;
50 SkTArray<sk_sp<SkPicture>>* d) in PagerCanvas()
75 sk_sp<SkPicture> SkMultiPictureDocumentReader::readPage(SkStreamSeekable* stream, in readPage()
81 auto picture = SkPicture::MakeFromStream(stream); in readPage()
/external/skia/tools/
Dgpuveto.cpp44 sk_sp<SkPicture> picture(SkPicture::MakeFromStream(&inputStream)); in main()
58 sk_sp<SkPicture> recorded(recorder.finishRecordingAsPicture()); in main()
Dpinspect.cpp17 static sk_sp<SkPicture> inspect(const char path[]) { in inspect()
36 auto pic = SkPicture::MakeFromStream(&stream); in inspect()
47 static void dumpOps(SkPicture* pic) { in dumpOps()

123456