Home
last modified time | relevance | path

Searched refs:cullRect (Results 1 – 25 of 109) sorted by relevance

12345

/external/skqp/bench/
DRecordingBench.cpp17 pic->playback(rec.beginRecording(pic->cullRect(), nullptr, in PictureCentricBench()
31 return SkIPoint::Make(SkScalarCeilToInt(fSrc->cullRect().width()), in onGetSize()
32 SkScalarCeilToInt(fSrc->cullRect().height())); in onGetSize()
45 r.reset(fDL.get(), fSrc->cullRect().roundOut()); in RecordingBench()
55 rec.reset(&dl, fSrc->cullRect().roundOut()); in onDraw()
63 fSrc->playback(recorder.beginRecording(fSrc->cullRect(), fUseBBH ? &factory : nullptr)); in onDraw()
/external/skqp/src/core/
DSkPictureRecorder.cpp31 const SkRect cullRect = userCullRect.isEmpty() ? SkRect::MakeEmpty() : userCullRect; in beginRecording() local
33 fCullRect = cullRect; in beginRecording()
37 fBBH.reset((*bbhFactory)(cullRect)); in beginRecording()
47 fRecorder->reset(fRecord.get(), cullRect, dpm, fMiniRecorder.get()); in beginRecording()
94 sk_sp<SkPicture> SkPictureRecorder::finishRecordingAsPictureWithCull(const SkRect& cullRect, in finishRecordingAsPictureWithCull() argument
96 fCullRect = cullRect; in finishRecordingAsPictureWithCull()
DSkPathEffect.cpp102 const SkRect* cullRect) const override { in onFilterPath()
106 if (fPE1->filterPath(&tmp, src, rec, cullRect)) { in onFilterPath()
109 return fPE0->filterPath(dst, *ptr, rec, cullRect); in onFilterPath()
160 const SkRect* cullRect) const override { in onFilterPath()
162 return fPE0->filterPath(dst, src, rec, cullRect) | in onFilterPath()
163 fPE1->filterPath(dst, src, rec, cullRect); in onFilterPath()
DSkBigPicture.cpp31 const bool useBBH = !canvas->getLocalClipBounds().contains(this->cullRect()); in playback()
56 SkRect SkBigPicture::cullRect() const { return fCullRect; } in cullRect() function in SkBigPicture
DSkRecordDraw.h21 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, SkRect bounds[]);
26 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord&, SkRect bounds[],
/external/skia/src/core/
DSkPictureRecorder.cpp32 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()
DSkPathEffect.cpp99 const SkRect* cullRect) const override { in onFilterPath()
103 if (fPE1->filterPath(&tmp, src, rec, cullRect)) { in onFilterPath()
106 return fPE0->filterPath(dst, *ptr, rec, cullRect); in onFilterPath()
161 const SkRect* cullRect) const override { in onFilterPath()
163 return fPE0->filterPath(dst, src, rec, cullRect) | in onFilterPath()
164 fPE1->filterPath(dst, src, rec, cullRect); in onFilterPath()
DSkRecordDraw.h21 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&,
27 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord&, SkRect bounds[],
DSkBigPicture.cpp31 const bool useBBH = !canvas->getLocalClipBounds().contains(this->cullRect()); in playback()
67 SkRect SkBigPicture::cullRect() const { return fCullRect; } in cullRect() function in SkBigPicture
/external/skia/bench/
DRecordingBench.cpp15 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()
/external/skia/tests/
DPictureTest.cpp151 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state()
152 SkScalarCeilToInt(picture->cullRect().height())); in check_save_state()
464 SkRect finalCullRect = picture->cullRect(); in test_cull_rect_reset()
768 REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1); in DEF_TEST()
769 REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2); in DEF_TEST()
770 REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3); in DEF_TEST()
771 REPORTER_ASSERT(r, deserializedPicture->cullRect().bottom() == 4); in DEF_TEST()
786 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,20)); in DEF_TEST()
791 REPORTER_ASSERT(r, pic->cullRect() == SkRectPriv::MakeLargest()); in DEF_TEST()
802 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,40)); in DEF_TEST()
[all …]
/external/skqp/src/effects/
DSkDashPathEffect.cpp43 const SkRect* cullRect) 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() argument
65 if (nullptr == cullRect) { in cull_line()
77 SkRect bounds = *cullRect; in cull_line()
167 const SkMatrix& matrix, const SkRect* cullRect) const { in onAsPoints()
202 if (!cull_line(pts, rec, matrix, cullRect, fIntervalLength)) { in onAsPoints()
/external/skia/src/effects/
DSkDashPathEffect.cpp43 const SkRect* cullRect) 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() argument
65 if (nullptr == cullRect) { in cull_line()
77 SkRect bounds = *cullRect; in cull_line()
167 const SkMatrix& matrix, const SkRect* cullRect) const { in onAsPoints()
202 if (!cull_line(pts, rec, matrix, cullRect, fIntervalLength)) { in onAsPoints()
/external/skqp/tests/
DPictureTest.cpp152 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state()
153 SkScalarCeilToInt(picture->cullRect().height())); in check_save_state()
466 SkRect finalCullRect = picture->cullRect(); in test_cull_rect_reset()
786 REPORTER_ASSERT(r, deserializedPicture->cullRect().left() == 1); in DEF_TEST()
787 REPORTER_ASSERT(r, deserializedPicture->cullRect().top() == 2); in DEF_TEST()
788 REPORTER_ASSERT(r, deserializedPicture->cullRect().right() == 3); in DEF_TEST()
789 REPORTER_ASSERT(r, deserializedPicture->cullRect().bottom() == 4); in DEF_TEST()
804 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,20)); in DEF_TEST()
809 REPORTER_ASSERT(r, pic->cullRect() == SkRectPriv::MakeLargest()); in DEF_TEST()
820 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,40)); in DEF_TEST()
[all …]
/external/skia/src/utils/
DSkDashPath.cpp159 const SkRect* cullRect, SkScalar intervalLength, SkPath* dstPath) { in cull_path() argument
160 if (!cullRect) { in cull_path()
172 bounds = *cullRect; in cull_path()
289 const SkRect* cullRect, const SkScalar aIntervals[], in InternalFilter() argument
308 if (cull_path(src, *rec, cullRect, intervalLength, &cullPathStorage)) { in InternalFilter()
438 const SkRect* cullRect, const SkPathEffect::DashInfo& info) { in FilterDashPath() argument
447 return InternalFilter(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength, in FilterDashPath()
/external/skqp/src/utils/
DSkDashPath.cpp174 const SkRect* cullRect, SkScalar intervalLength, in cull_path() argument
177 if (nullptr == cullRect) { in cull_path()
190 bounds = *cullRect; in cull_path()
295 const SkRect* cullRect, const SkScalar aIntervals[], in InternalFilter() argument
314 if (cull_path(src, *rec, cullRect, intervalLength, &cullPathStorage)) { in InternalFilter()
443 const SkRect* cullRect, const SkPathEffect::DashInfo& info) { in FilterDashPath() argument
452 return InternalFilter(dst, src, rec, cullRect, info.fIntervals, info.fCount, initialDashLength, in FilterDashPath()
/external/skqp/tools/skpbench/
Dskpbench.cpp376 int width = SkTMin(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
377 height = SkTMin(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
379 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main()
381 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
382 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
446 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
/external/skia/gm/
Ddistantclip.cpp46 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
47 pict->cullRect().height())); in onDraw()
/external/skqp/gm/
Ddistantclip.cpp49 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
50 pict->cullRect().height(), in onDraw()
/external/skqp/tools/
Dremote_demo.cpp137 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()
Ddump_record.cpp58 const int w = SkScalarCeilToInt(src->cullRect().width()); in main()
59 const int h = SkScalarCeilToInt(src->cullRect().height()); in main()
/external/skia/tools/
Dremote_demo.cpp137 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()
/external/skia/tools/skpbench/
Dskpbench.cpp541 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
542 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
544 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main()
546 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
547 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
618 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
/external/skqp/tools/mdbviz/
DModel.cpp39 SkScalarCeilToInt(pic->cullRect().width()), in load()
40 SkScalarCeilToInt(pic->cullRect().height()))); in load()
/external/skia/tools/mdbviz/
DModel.cpp39 new DebugCanvas(SkScalarCeilToInt(pic->cullRect().width()), in load()
40 SkScalarCeilToInt(pic->cullRect().height()))); in load()

12345