Home
last modified time | relevance | path

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

12345678910>>...18

/external/skqp/docs/
DSkIPoint_Reference.bmh5 #Struct SkIPoint
11 SkIPoint holds two 32-bit integer coordinates.
25 #Method static constexpr SkIPoint Make(int32_t x, int32_t y)
32 SkIPoint pt1 = {45, 66};
33 SkIPoint pt2 = SkIPoint::Make(45, 66);
57 SkIPoint pt1 = {45, 66};
76 SkIPoint pt1 = {45, 66};
95 SkIPoint pt = { 0, -0};
118 SkIPoint pt1, pt2 = { SK_MinS32, SK_MaxS32 };
132 #Method SkIPoint operator-() const
[all …]
/external/skqp/site/user/api/
DSkIPoint_Reference.md1 SkIPoint Reference
5 <a name='SkIPoint'></a>
10 struct <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> {
15 …static constexpr <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> <a href='#SkIPoint_Make'>Make<…
20 <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> operator-() const;
24 …a>(const <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a>& a, const <a href='SkIPoint_Reference#
25 …a>(const <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a>& a, const <a href='SkIPoint_Reference#
26 …a>(const <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a>& a, const <a href='SkIPoint_Reference#
27 …oint_Reference#SkIPoint'>SkIPoint</a> <a href='#SkIPoint_add_operator'>operator+</a>(const <a href…
32 <a href='SkIPoint_Reference#SkIPoint'>SkIPoint</a> holds two 32-bit integer coordinates.<table styl…
[all …]
/external/skqp/include/core/
DSkPoint.h25 struct SkIPoint;
30 typedef SkIPoint SkIVector;
35 struct SkIPoint { struct
45 static constexpr SkIPoint Make(int32_t x, int32_t y) { in Make() argument
81 SkIPoint operator-() const {
119 friend bool operator==(const SkIPoint& a, const SkIPoint& b) {
129 friend bool operator!=(const SkIPoint& a, const SkIPoint& b) {
141 friend SkIVector operator-(const SkIPoint& a, const SkIPoint& b) {
155 friend SkIPoint operator+(const SkIPoint& a, const SkIVector& b) {
234 void iset(const SkIPoint& p) { in iset()
/external/skia/include/core/
DSkPoint.h15 struct SkIPoint;
20 typedef SkIPoint SkIVector;
25 struct SkIPoint { struct
35 static constexpr SkIPoint Make(int32_t x, int32_t y) { in Make() argument
71 SkIPoint operator-() const {
109 friend bool operator==(const SkIPoint& a, const SkIPoint& b) {
119 friend bool operator!=(const SkIPoint& a, const SkIPoint& b) {
131 friend SkIVector operator-(const SkIPoint& a, const SkIPoint& b) {
145 friend SkIPoint operator+(const SkIPoint& a, const SkIVector& b) {
224 void iset(const SkIPoint& p) { in iset()
/external/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.cpp52 SkIPoint offset = SkIPoint::Make(3, 4); in test_find_existing()
55 skif::FilterResult<For::kOutput>(image, skif::LayerSpace<SkIPoint>(offset))); in test_find_existing()
59 REPORTER_ASSERT(reporter, offset == SkIPoint(foundImage.layerOrigin())); in test_find_existing()
81 SkIPoint offset = SkIPoint::Make(3, 4); in test_dont_find_if_diff_key()
84 skif::FilterResult<For::kOutput>(image, skif::LayerSpace<SkIPoint>(offset))); in test_dont_find_if_diff_key()
103 SkIPoint offset = SkIPoint::Make(3, 4); in test_internal_purge()
106 skif::FilterResult<For::kOutput>(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
114 skif::FilterResult<For::kOutput>(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge()
131 SkIPoint offset = SkIPoint::Make(3, 4); in test_explicit_purging()
135 skif::FilterResult<For::kOutput>(image, skif::LayerSpace<SkIPoint>(offset))); in test_explicit_purging()
[all …]
/external/skqp/tests/
DBlendTest.cpp128 SkIPoint outPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
129 SkIPoint inPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
131 {SkRect::MakeXYWH(0, 0, 5, 5), SkIPoint::Make(7, 7), SkIPoint::Make(2, 2)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 {SkRect::MakeXYWH(2, 2, 5, 5), SkIPoint::Make(1, 1), SkIPoint::Make(4, 4)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 {SkRect::MakeXYWH(5, 5, 5, 5), SkIPoint::Make(2, 2), SkIPoint::Make(7, 7)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
158 SkIPoint outPoint = testCase.fRectAndPoints.outPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
159 SkIPoint inPoint = testCase.fRectAndPoints.inPoint; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DImageFilterCacheTest.cpp47 SkIPoint offset = SkIPoint::Make(3, 4); in test_find_existing()
51 SkIPoint foundOffset; in test_find_existing()
77 SkIPoint offset = SkIPoint::Make(3, 4); in test_dont_find_if_diff_key()
81 SkIPoint foundOffset; in test_dont_find_if_diff_key()
98 SkIPoint offset = SkIPoint::Make(3, 4); in test_internal_purge()
102 SkIPoint foundOffset; in test_internal_purge()
125 SkIPoint offset = SkIPoint::Make(3, 4); in test_explicit_purging()
132 SkIPoint foundOffset; in test_explicit_purging()
/external/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.cpp39 sk_sp<SkSpecialImage> onFilterImage(const Context&, SkIPoint* offset) const override;
47 const SkIPoint& backgroundOffset,
49 const SkIPoint& foregroundOffset,
107 SkIPoint* offset) const { in onFilterImage()
108 SkIPoint backgroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
111 SkIPoint foregroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
236 const SkIPoint& backgroundOffset, in filterImageGPU()
238 const SkIPoint& foregroundOffset, in filterImageGPU()
/external/skqp/src/effects/imagefilters/
DSkOffsetImageFilter.cpp20 static SkIPoint map_offset_vector(const SkMatrix& ctm, const SkVector& offset) { in map_offset_vector()
22 return SkIPoint::Make(SkScalarRoundToInt(vec.fX), SkScalarRoundToInt(vec.fY)); in map_offset_vector()
37 SkIPoint* offset) const { in onFilterImage()
38 SkIPoint srcOffset = SkIPoint::Make(0, 0); in onFilterImage()
44 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage()
101 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds()
DSkComposeImageFilter.cpp36 SkIPoint* offset) const { in onFilterImage()
44 SkIPoint innerOffset = SkIPoint::Make(0, 0); in onFilterImage()
56 SkIPoint outerOffset = SkIPoint::Make(0, 0); in onFilterImage()
DSkXfermodeImageFilter.cpp39 SkIPoint* offset) const override;
48 const SkIPoint& backgroundOffset,
50 const SkIPoint& foregroundOffset,
113 SkIPoint* offset) const { in onFilterImage()
114 SkIPoint backgroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
117 SkIPoint foregroundOffset = SkIPoint::Make(0, 0); in onFilterImage()
256 const SkIPoint& backgroundOffset, in filterImageGPU()
258 const SkIPoint& foregroundOffset, in filterImageGPU()
/external/skia/src/core/
DSkBlurMask.h19 SkBlurStyle, SkIPoint *margin = nullptr,
23 SkBlurStyle, SkIPoint *margin = nullptr,
40 SkIPoint* margin = nullptr);
46 SkBlurStyle, SkIPoint* margin = nullptr);
DSkImageFilterTypes.h216 class LayerSpace<SkIPoint> {
219 explicit LayerSpace(const SkIPoint& geometry) : fData(geometry) {} in LayerSpace()
220 explicit LayerSpace(SkIPoint&& geometry) : fData(std::move(geometry)) {} in LayerSpace()
221 explicit operator const SkIPoint&() const { return fData; }
228 LayerSpace<SkIPoint> operator+(const LayerSpace<IVector>& v) {
229 return LayerSpace<SkIPoint>(fData + SkIVector(v));
231 LayerSpace<SkIPoint> operator-(const LayerSpace<IVector>& v) {
232 return LayerSpace<SkIPoint>(fData - SkIVector(v));
243 LayerSpace<IVector> operator-(const LayerSpace<SkIPoint>& p) {
248 SkIPoint fData;
[all …]
/external/skqp/src/core/
DSkBlurMask.h19 SkBlurStyle, SkIPoint *margin = nullptr,
23 SkBlurStyle, SkIPoint *margin = nullptr,
40 SkIPoint* margin = nullptr);
46 SkBlurStyle, SkIPoint* margin = nullptr);
/external/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()
/external/skqp/tools/skqp/src/
Dskqp_model.cpp22 static inline uint32_t color(const SkPixmap& pm, SkIPoint p) { in color()
26 static inline bool inside(SkIPoint point, SkISize dimensions) { in inside()
40 static const SkIPoint kNeighborhood[9] = { in Check()
47 const SkIPoint xy{x, y}; in Check()
51 for (SkIPoint delta : kNeighborhood) { in Check()
52 SkIPoint point = xy + delta; in Check()
/external/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()
/external/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()
/external/skqp/gm/
Dsimple_magnification.cpp85 void draw(SkCanvas* canvas, sk_sp<SkImage> image, const SkIPoint& offset, int inset) { in draw()
113 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, kPad), 1); in onDraw()
114 this->draw(canvas, topLImg, SkIPoint::Make(bigOffset, kPad), 1); in onDraw()
115 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, bigOffset), 7); in onDraw()
116 this->draw(canvas, topLImg, SkIPoint::Make(bigOffset, bigOffset), 7); in onDraw()
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h32 const SkIPoint& dstPoint) override;
46 const SkIPoint& dstPoint) in CopyInfo()
52 SkIPoint fDstPoint;
76 const SkIPoint& dstPoint) override;
161 const SkIPoint& dstPoint, bool shouldDiscardDst) in CopyInfo()
171 SkIPoint fDstPoint;
/external/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()

12345678910>>...18