Home
last modified time | relevance | path

Searched refs:makeOffset (Results 1 – 25 of 68) sorted by relevance

123

/external/skia/gm/
Dgpu_blur_utils.cpp225 srcRect.makeOffset( 0, srcH), in run()
226 srcRect.makeOffset( srcW, 0), in run()
227 srcRect.makeOffset( 0, -srcH), in run()
228 srcRect.makeOffset(-srcW, 0), in run()
234 .makeOffset(srcRect.topLeft()), in run()
236 .makeOffset(srcRect.topLeft()), in run()
238 .makeOffset(srcRect.topLeft()), in run()
240 .makeOffset(srcRect.topLeft()), in run()
246 .makeOffset(srcRect.topLeft()), in run()
248 .makeOffset(srcRect.topLeft()), in run()
[all …]
Dtexelsubset.cpp154 drawRect = localRect.makeOffset(x, y); in onDraw()
173 localRect.makeOffset(kT), in onDraw()
182 drawRect = localRect.makeOffset(x, y); in onDraw()
Dbug9331.cpp39 draw(0xFF0000FF, clip.makeOffset(0,150));
Dcolorwheel.cpp92 canvas->drawImageRect(upmImg, srcRect, dstRect.makeOffset(128, 0),
Daarecteffect.cpp78 SkRect rect = r.makeOffset(x, y); in onDraw()
Dimagemasksubset.cpp104 canvas->drawImageRect(subset, kDest.makeOffset(kSize.width() * 1.5f, 0),
/external/skia/tests/
DRoundRectTest.cpp1205 verify_success(reporter, a.makeOffset(6.f, 0.f), b, kA, kRect, kRect, kA); in test_conservative_intersection()
1206 verify_success(reporter, a.makeOffset(-6.f, 0.f), b, kRect, kA, kA, kRect); in test_conservative_intersection()
1208 verify_success(reporter, a, b.makeOffset(0.f, 6.f), kB, kB, kRect, kRect); in test_conservative_intersection()
1209 verify_success(reporter, a, b.makeOffset(0.f, -6.f), kRect, kRect, kB, kB); in test_conservative_intersection()
1211 verify_success(reporter, a.makeOffset(-7.f, -8.f), b, kB, kRect, kA, kRect); // TL of B in test_conservative_intersection()
1212 verify_success(reporter, a.makeOffset(7.f, -8.f), b, kRect, kB, kRect, kA); // TR of B in test_conservative_intersection()
1213 verify_success(reporter, a.makeOffset(7.f, 8.f), b, kA, kRect, kB, kRect); // BR of B in test_conservative_intersection()
1214 verify_success(reporter, a.makeOffset(-7.f, 8.f), b, kRect, kA, kRect, kB); // BL of B in test_conservative_intersection()
1239 verify_failure(reporter, a.makeOffset(32.f, 0.f), b); in test_conservative_intersection()
1241 verify_failure(reporter, a.makeOffset(11.5f, -11.5f), b); in test_conservative_intersection()
[all …]
/external/skia/src/gpu/
DBufferWriter.h83 W makeOffset(size_t offsetInBytes) const { in makeOffset() function
131 VertexWriter makeOffset(size_t offsetInBytes) const { in makeOffset() function
132 return this->BufferWriter::makeOffset<VertexWriter>(offsetInBytes); in makeOffset()
270 w = w.makeOffset(sizeof(T));
285 w = w.makeOffset(sizeof(T));
294 w = w.makeOffset(sizeof(T) * array.fCount);
310 w = w.makeOffset(sizeof(vector));
384 IndexWriter makeOffset(int numIndices) const {
385 return this->BufferWriter::makeOffset<IndexWriter>(numIndices * sizeof(uint16_t));
401 w = w.makeOffset(1);
DAtlasTypes.cpp116 offsetRect = fDirtyRect.makeOffset(fOffset.fX, fOffset.fY); in prepareForUpload()
128 offsetRect = fCachedRect.makeOffset(fOffset.fX, fOffset.fY); in prepareForUpload()
/external/skia/src/gpu/ganesh/
DGrWindowRectangles.h22 GrWindowRectangles makeOffset(int dx, int dy) const;
79 inline GrWindowRectangles GrWindowRectangles::makeOffset(int dx, int dy) const { in makeOffset() function
93 windows[i] = this->data()[i].makeOffset(dx, dy); in makeOffset()
DGrVertexChunkArray.h68 fCurrChunkVertexWriter.makeOffset(fStride * count)); in appendVertices()
78 fCurrChunkVertexWriter = fCurrChunkVertexWriter.makeOffset(fStride * -count); in popVertices()
DGrDrawIndirectCommand.h57 GrDrawIndirectWriter makeOffset(int drawCount) const { return {fData + drawCount}; } in makeOffset() function
92 GrDrawIndexedIndirectWriter makeOffset(int drawCount) const { return {fData + drawCount}; } in makeOffset() function
/external/skia/src/pdf/
DSkKeyedImage.cpp18 return {image->bounds().makeOffset(o), bm->getGenerationID()}; in SkBitmapKeyFromImage()
38 img.fKey = {subset.makeOffset(fKey.fSubset.topLeft()), fKey.fID}; in subset()
/external/skia/docs/examples/
Dblur4444.cpp46 c->drawRect(SkRect{0, 0, 640, 84}.makeOffset(0, 300), blrPaint); in draw()
55 c->drawRect(SkRect{0, 0, 640, 100}.makeOffset(0, 150), grdPaint); in draw()
DRRect_makeOffset.cpp13 rrect = rrect.makeOffset(-3, 3); in draw()
DIRect_makeOffset.cpp10 rect = rect.makeOffset(15, 32); in draw()
DRect_makeOffset.cpp10 rect = rect.makeOffset(15, 32); in draw()
Dmeasure_text_bounds.cpp19 canvas->drawRect(bounds.makeOffset(x, y), paint); in draw()
/external/skia/include/core/
DSkRect.h301 constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const { in makeOffset() function
318 constexpr SkIRect makeOffset(SkIVector offset) const { in makeOffset() function
319 return this->makeOffset(offset.x(), offset.y()); in makeOffset()
979 constexpr SkRect makeOffset(SkScalar dx, SkScalar dy) const { in makeOffset() function
988 constexpr SkRect makeOffset(SkVector v) const { return this->makeOffset(v.x(), v.y()); } in makeOffset() function
DSkRRect.h397 SkRRect SK_WARN_UNUSED_RESULT makeOffset(SkScalar dx, SkScalar dy) const { in makeOffset() function
398 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType); in makeOffset()
/external/skia/tests/graphite/
DRectTest.cpp96 CHECK(rect2.makeOffset({.5f, -.25f}) == skRect2.makeOffset(.5f, -.25f)); in DEF_GRAPHITE_TEST()
DReadWritePixelsGraphiteTest.cpp245 const auto rect = SkIRect::MakeWH(readInfo.width(), readInfo.height()).makeOffset(offset); in graphite_read_pixels_test_driver()
291 SkIRect dstWriteRect = srcReadRect.makeOffset(-rect.fLeft, -rect.fTop); in graphite_read_pixels_test_driver()
524 auto rect = SkIRect::MakeSize(pixels.dimensions()).makeOffset(offset); in DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS()
604 auto rect = SkIRect::MakeSize(pixels.dimensions()).makeOffset(offset); in DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/gpu/graphite/geom/
DRect.h130 AI Rect makeOffset(float2 offset) const { return fVals + float4(offset, -offset); } in makeOffset() function
141 AI Rect& offset(float2 offset) { return *this = this->makeOffset(offset); } in offset()
/external/skia/modules/sksg/src/
DSkSGText.cpp68 return bounds.makeOffset(aligned_pos.x(), aligned_pos.y()); in onRevalidate()
/external/skia/modules/skottie/gm/
DExternalProperties.cpp73 auto dest = SkRect::MakeWH(kSize/2, kSize/2).makeOffset(kSize * (i & 1) / 2, in onDraw()

123