Home
last modified time | relevance | path

Searched refs:SkIPoint (Results 1 – 25 of 224) sorted by relevance

123456789

/third_party/skia/include/core/
DSkPoint.h17 struct SkIPoint;
22 typedef SkIPoint SkIVector;
27 struct SkIPoint { struct
37 static constexpr SkIPoint Make(int32_t x, int32_t y) { in Make() argument
73 SkIPoint operator-() const {
111 friend bool operator==(const SkIPoint& a, const SkIPoint& b) {
121 friend bool operator!=(const SkIPoint& a, const SkIPoint& b) {
133 friend SkIVector operator-(const SkIPoint& a, const SkIPoint& b) {
147 friend SkIPoint operator+(const SkIPoint& a, const SkIVector& b) {
233 void iset(const SkIPoint& p) { in iset()
/third_party/skia/tests/
DBlendTest.cpp92 SkIPoint outPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
93 SkIPoint inPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
95 {SkRect::MakeXYWH(0, 0, 5, 5), SkIPoint::Make(7, 7), SkIPoint::Make(2, 2)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
96 {SkRect::MakeXYWH(2, 2, 5, 5), SkIPoint::Make(1, 1), SkIPoint::Make(4, 4)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
97 {SkRect::MakeXYWH(5, 5, 5, 5), SkIPoint::Make(2, 2), SkIPoint::Make(7, 7)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
122 SkIPoint outPoint = testCase.fRectAndPoints.outPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
123 SkIPoint inPoint = testCase.fRectAndPoints.inPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DImageFilterCacheTest.cpp50 SkIPoint offset = SkIPoint::Make(3, 4); in test_find_existing()
52 cache->set(key1, filter.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_find_existing()
56 REPORTER_ASSERT(reporter, offset == SkIPoint(foundImage.layerOrigin())); in test_find_existing()
78 SkIPoint offset = SkIPoint::Make(3, 4); in test_dont_find_if_diff_key()
80 cache->set(key0, filter.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_dont_find_if_diff_key()
99 SkIPoint offset = SkIPoint::Make(3, 4); in test_internal_purge()
101 cache->set(key1, filter1.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
109 skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
126 SkIPoint offset = SkIPoint::Make(3, 4); in test_explicit_purging()
130 skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_explicit_purging()
[all …]
DBitmapCopyTest.cpp44 SkIPoint* const data;
47 , data(new SkIPoint[length]) { } in Coordinates()
53 SkIPoint* operator[](int i) const { in operator []()
176 SkIPoint fRequestedSrcLoc; in DEF_TEST()
179 SkIPoint fExpectedDstLoc; in DEF_TEST()
/third_party/skia/src/effects/imagefilters/
DSkOffsetImageFilter.cpp33 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
78 static SkIPoint map_offset_vector(const SkMatrix& ctm, const SkVector& offset) { in map_offset_vector()
80 return SkIPoint::Make(SkScalarRoundToInt(vec.fX), SkScalarRoundToInt(vec.fY)); in map_offset_vector()
84 SkIPoint* offset) const { in onFilterImage()
85 SkIPoint srcOffset = SkIPoint::Make(0, 0); in onFilterImage()
91 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage()
137 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds()
DSkComposeImageFilter.cpp27 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
74 SkIPoint* offset) const { in onFilterImage()
82 SkIPoint innerOffset = SkIPoint::Make(0, 0); in onFilterImage()
103 SkIPoint outerOffset = SkIPoint::Make(0, 0); in onFilterImage()
DSkBlendImageFilter.cpp44 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
52 const SkIPoint& backgroundOffset,
54 const SkIPoint& foregroundOffset,
130 SkIPoint* offset) const { in onFilterImage()
131 SkIPoint backgroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
134 SkIPoint foregroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
259 const SkIPoint& backgroundOffset, in filterImageGPU()
261 const SkIPoint& foregroundOffset, in filterImageGPU()
DSkMergeImageFilter.cpp28 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
61 SkIPoint* offset) const { in onFilterImage()
71 std::unique_ptr<SkIPoint[]> offsets(new SkIPoint[inputCount]); in onFilterImage()
DSkArithmeticImageFilter.cpp41 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
49 const SkIPoint& backgroundOffset,
51 const SkIPoint& foregroundOffset,
189 SkIPoint* offset) const { in onFilterImage()
190 SkIPoint backgroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
193 SkIPoint foregroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
338 const SkIPoint& backgroundOffset, in filterImageGPU()
340 const SkIPoint& foregroundOffset, in filterImageGPU()
DSkColorFilterImageFilter.cpp29 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
87 SkIPoint* offset) const { in onFilterImage()
88 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage()
/third_party/skia/src/core/
DSkImageFilterTypes.h221 class LayerSpace<SkIPoint> {
224 explicit LayerSpace(const SkIPoint& geometry) : fData(geometry) {} in LayerSpace()
225 explicit LayerSpace(SkIPoint&& geometry) : fData(std::move(geometry)) {} in LayerSpace()
226 explicit operator const SkIPoint&() const { return fData; }
233 LayerSpace<SkIPoint> operator+(const LayerSpace<IVector>& v) {
234 return LayerSpace<SkIPoint>(fData + SkIVector(v));
236 LayerSpace<SkIPoint> operator-(const LayerSpace<IVector>& v) {
237 return LayerSpace<SkIPoint>(fData - SkIVector(v));
248 LayerSpace<IVector> operator-(const LayerSpace<SkIPoint>& p) {
255 SkIPoint fData;
[all …]
DSkBlurMask.h19 SkBlurStyle, SkIPoint *margin = nullptr,
23 SkBlurStyle, SkIPoint *margin = nullptr,
40 SkIPoint* margin = nullptr);
46 SkBlurStyle, SkIPoint* margin = nullptr);
DSkGlyphRunPainter.h37 const SkIPoint ignorePositionMask;
38 const SkIPoint ignorePositionFieldMask;
42 static SkIPoint IgnorePositionMask(bool isSubpixel, SkAxisAlignment axisAlignment);
43 static SkIPoint IgnorePositionFieldMask(bool isSubpixel, SkAxisAlignment axisAlignment);
/third_party/skia/experimental/sorttoy/
DFake.h35 void translate(SkIPoint trans) { in translate()
40 SkIPoint getTrans() const { return fTrans; } in getTrans()
58 SkIPoint fTrans { 0, 0 };
70 SkIPoint ctm() const { return fCTM; } in ctm()
82 SkIPoint fCTM { 0, 0 };
113 void translate(SkIPoint trans) { in translate()
211 void translate(SkIPoint trans) { in translate()
256 void translate(SkIPoint trans) { in translate()
/third_party/skia/src/gpu/
DSurfaceContext.h31 struct SkIPoint;
86 bool readPixels(GrDirectContext* dContext, GrPixmap dst, SkIPoint srcPt);
121 SkIPoint dstPt);
176 bool testCopy(sk_sp<GrSurfaceProxy> src, const SkIRect& srcRect, const SkIPoint& dstPoint) { in testCopy()
240 sk_sp<GrRenderTask> copy(sk_sp<GrSurfaceProxy> src, SkIRect srcRect, SkIPoint dstPoint);
245 SkIPoint);
DGrCopyRenderTask.h23 SkIPoint dstPoint,
31 SkIPoint dstPoint,
51 SkIPoint fDstPoint;
DGrDstProxyView.h42 const SkIPoint& offset() const { return fOffset; } in offset()
44 void setOffset(const SkIPoint& offset) { fOffset = offset; } in setOffset()
63 SkIPoint fOffset = {0, 0};
/third_party/skia/tools/skqp/src/
Dskqp_model.cpp24 static inline uint32_t color(const SkPixmap& pm, SkIPoint p) { in color()
28 static inline bool inside(SkIPoint point, SkISize dimensions) { in inside()
42 static const SkIPoint kNeighborhood[9] = { in Check()
49 const SkIPoint xy{x, y}; in Check()
53 for (SkIPoint delta : kNeighborhood) { in Check()
54 SkIPoint point = xy + delta; in Check()
/third_party/skia/gm/
Dsimple_magnification.cpp97 void draw(SkCanvas* canvas, sk_sp<SkImage> image, const SkIPoint& offset, int inset) { in draw()
126 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, kPad), 1); in onDraw()
127 this->draw(canvas, topLImg, SkIPoint::Make(bigOffset, kPad), 1); in onDraw()
128 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, bigOffset), 7); in onDraw()
129 this->draw(canvas, topLImg, SkIPoint::Make(bigOffset, bigOffset), 7); in onDraw()
/third_party/skia/bench/
DRecordingBench.cpp28 SkIPoint PictureCentricBench::onGetSize() { in onGetSize()
29 return SkIPoint::Make(SkScalarCeilToInt(fSrc->cullRect().width()), in onGetSize()
65 SkIPoint DeserializePictureBench::onGetSize() { in onGetSize()
66 return SkIPoint::Make(128, 128); in onGetSize()
DMatrixConvolutionBench.cpp32 SkIPoint kernelOffset = SkIPoint::Make(4, 4); in MatrixConvolutionBench()
44 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in MatrixConvolutionBench()
DBenchmark.cpp26 SkIPoint Benchmark::getSize() { in getSize()
59 SkIPoint Benchmark::onGetSize() { in onGetSize()
60 return SkIPoint::Make(640, 480); in onGetSize()
/third_party/skia/docs/examples/
DIPoint_Make.cpp7 SkIPoint pt1 = {45, 66}; in draw()
8 SkIPoint pt2 = SkIPoint::Make(45, 66); in draw()
DIPoint_minus_operator.cpp7 SkIPoint test[] = { {0, -0}, {-1, -2}, in draw()
10 for (const SkIPoint& pt : test) { in draw()
11 SkIPoint negPt = -pt; in draw()
DIPoint_add_operator.cpp7 auto draw_lines = [=](const SkIPoint pts[], size_t count, SkPaint& paint) -> void { in draw()
15 SkIPoint points[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 } }; in draw()
21 SkIPoint mod = {4, 1}; in draw()

123456789