/third_party/skia/bench/ |
H A D | RecordingBench.cpp | 15 pic->playback(rec.beginRecording(pic->cullRect(), nullptr /*, in PictureCentricBench() 29 return SkIPoint::Make(SkScalarCeilToInt(fSrc->cullRect().width()), in onGetSize() 30 SkScalarCeilToInt(fSrc->cullRect().height())); in onGetSize() 44 fSrc->playback(recorder.beginRecording(fSrc->cullRect(), fUseBBH ? &factory : nullptr)); in onDraw()
|
H A D | VertBench.cpp | 218 const SkRect* cullRect = nullptr; 229 SkSamplingOptions(), cullRect, paintPtr);
|
/third_party/skia/src/core/ |
H A D | SkPictureRecorder.cpp | 32 const SkRect cullRect = userCullRect.isEmpty() ? SkRect::MakeEmpty() : userCullRect; in beginRecording() local 34 fCullRect = cullRect; in beginRecording() 40 fRecorder->reset(fRecord.get(), cullRect, fMiniRecorder.get()); in beginRecording() 60 SkRect bounds = pic->cullRect(); // actually the computed bounds, not fCullRect. in finishRecordingAsPicture() 105 sk_sp<SkPicture> SkPictureRecorder::finishRecordingAsPictureWithCull(const SkRect& cullRect) { in finishRecordingAsPictureWithCull() argument 106 fCullRect = cullRect; in finishRecordingAsPictureWithCull()
|
H A D | SkPathEffect.cpp | 102 const SkRect* cullRect, const SkMatrix& ctm) const override { 106 if (fPE1->filterPath(&tmp, src, rec, cullRect, ctm)) { 109 return fPE0->filterPath(dst, *ptr, rec, cullRect, ctm); 163 const SkRect* cullRect, const SkMatrix& ctm) const override { 165 bool filteredFirst = fPE0->filterPath(dst, src, rec, cullRect, ctm); 166 bool filteredSecond = fPE1->filterPath(dst, src, rec, cullRect, ctm);
|
H A D | SkRecordDraw.h | 21 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, 27 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord&, SkRect bounds[],
|
H A D | SkBigPicture.cpp | 31 const bool useBBH = !canvas->getLocalClipBounds().contains(this->cullRect()); in playback() 67 SkRect SkBigPicture::cullRect() const { return fCullRect; } in cullRect() function in SkBigPicture
|
H A D | SkMiniRecorder.cpp | 27 SkRect cullRect() const override { return SkRect::MakeEmpty(); } 60 SkRect cullRect() const override { return fCull; }
|
H A D | SkRecordDraw.cpp | 186 FillBounds(const SkRect& cullRect, const SkRecord& record, in FillBounds() argument 188 : fCullRect(cullRect) in FillBounds() 463 SkRect dst = op.picture->cullRect(); in bounds() 554 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, in SkRecordFillBounds() argument 557 SkRecords::FillBounds visitor(cullRect, record, bounds, meta); in SkRecordFillBounds()
|
H A D | SkPaint.cpp | 368 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, in getFillPath() argument 370 return this->getFillPath(src, dst, cullRect, SkMatrix::Scale(resScale, resScale)); in getFillPath() 373 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, in getFillPath() argument 393 if (fPathEffect && fPathEffect->filterPath(&tmpPath, src, &rec, cullRect, ctm)) { in getFillPath()
|
/third_party/skia/tests/ |
H A D | PictureTest.cpp | 150 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state() 151 SkScalarCeilToInt(picture->cullRect().height())); in check_save_state() 441 SkRect finalCullRect = picture->cullRect(); in test_cull_rect_reset() 724 REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1); in DEF_TEST() 725 REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2); in DEF_TEST() 726 REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3); in DEF_TEST() 727 REPORTER_ASSERT(r, deserializedPicture->cullRect().bottom() == 4); in DEF_TEST() 742 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,20)); in DEF_TEST() 747 REPORTER_ASSERT(r, pic->cullRect() == SkRectPriv::MakeLargest()); in DEF_TEST() 758 REPORTER_ASSERT(r, pic->cullRect() in DEF_TEST() [all...] |
H A D | PictureBBHTest.cpp | 112 REPORTER_ASSERT(r, pic->cullRect() == (SkRect{-20,-20,-10,-10})); in DEF_TEST() 122 REPORTER_ASSERT(r, pic->cullRect() == (SkRect{-20,-20,-10,-10})); in DEF_TEST()
|
/third_party/skia/src/effects/ |
H A D | SkDashPathEffect.cpp | 43 const SkRect* cullRect, const SkMatrix&) const { in onFilterPath() 44 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals, fCount, in onFilterPath() 63 const SkMatrix& ctm, const SkRect* cullRect, in cull_line() 65 if (nullptr == cullRect) { in cull_line() 77 SkRect bounds = *cullRect; in cull_line() 80 // cullRect is in device space while pts are in the local coordinate system in cull_line() 167 const SkMatrix& matrix, const SkRect* cullRect) const { in onAsPoints() 202 if (!cull_line(pts, rec, matrix, cullRect, fIntervalLength)) { in onAsPoints() 42 onFilterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec, const SkRect* cullRect, const SkMatrix&) const onFilterPath() argument 62 cull_line(SkPoint* pts, const SkStrokeRec& rec, const SkMatrix& ctm, const SkRect* cullRect, const SkScalar intervalLength) cull_line() argument
|
H A D | Sk2DPathEffect.cpp | 67 const SkRect* cullRect, const SkMatrix&) const override { 118 const SkRect* cullRect, const SkMatrix& ctm) const override { 119 if (this->INHERITED::onFilterPath(dst, src, rec, cullRect, ctm)) {
|
H A D | Sk1DPathEffect.cpp | 96 const SkRect* cullRect, const SkMatrix& ctm) const override { 98 return this->INHERITED::onFilterPath(dst, src, rec, cullRect, ctm);
|
/third_party/skia/src/utils/ |
H A D | SkDashPath.cpp | 159 const SkRect* cullRect, SkScalar intervalLength, SkPath* dstPath) { 160 if (!cullRect) { 172 bounds = *cullRect; 292 const SkRect* cullRect, const SkScalar aIntervals[], 311 if (cull_path(src, *rec, cullRect, intervalLength, &cullPathStorage)) { 441 const SkRect* cullRect, const SkPathEffect::DashInfo& info) { 450 return InternalFilter(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength,
|
H A D | SkDashPathPriv.h | 48 const SkRect* cullRect, const SkScalar aIntervals[],
|
/third_party/skia/gm/ |
H A D | distantclip.cpp | 46 pict->playback(recorder.beginRecording(pict->cullRect().width(), 47 pict->cullRect().height()));
|
H A D | pictureimagefilter.cpp | 87 return make(fPicture, fPicture->cullRect(), sampling); in make() 124 paint.setImageFilter(make(fLCDPicture, fPicture->cullRect(), SkSamplingOptions()));
|
/third_party/skia/tools/ |
H A D | remote_demo.cpp | 137 const SkIRect bounds = pic.cullRect().round(); in push_font_data() 160 auto cullRect = pic->cullRect(); in final_draw() local 161 auto r = cullRect.round(); in final_draw()
|
H A D | dump_record.cpp | 161 const int w = SkScalarCeilToInt(src->cullRect().width()); in main() 162 const int h = SkScalarCeilToInt(src->cullRect().height()); in main()
|
/third_party/skia/tools/skpbench/ |
H A D | skpbench.cpp | 542 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main() 543 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main() 545 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main() 547 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main() 548 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main() 618 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
|
/third_party/skia/tools/mdbviz/ |
H A D | Model.cpp | 39 new DebugCanvas(SkScalarCeilToInt(pic->cullRect().width()), in load() 40 SkScalarCeilToInt(pic->cullRect().height()))); in load()
|
/third_party/skia/docs/examples/ |
H A D | Picture_MakePlaceholder.cpp | 11 const SkRect rect = picture->cullRect(); in REG_FIDDLE()
|
H A D | Picture_cullRect.cpp | 17 canvas->drawRect(picture->cullRect(), paint); in REG_FIDDLE()
|
/third_party/skia/include/core/ |
H A D | SkPaint.h | 387 @param cullRect optional limit passed to SkPathEffect 392 bool getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, 395 bool getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect,
|