Home
last modified time | relevance | path

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

/external/skia/tests/
DSpecialImageTest.cpp32 static const int kPad = 3; variable
33 static const int kFullSize = kSmallerSize + 2 * kPad;
47 temp.drawRect(SkRect::MakeXYWH(SkIntToScalar(kPad), SkIntToScalar(kPad), in create_bm()
98 img->draw(canvas, SkIntToScalar(kPad), SkIntToScalar(kPad), nullptr); in test_image()
107 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1)); in test_image()
108 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad)); in test_image()
109 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kSmallerSize+kPad-1, in test_image()
110 kSmallerSize+kPad-1)); in test_image()
111 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kSmallerSize+kPad, in test_image()
112 kSmallerSize+kPad)); in test_image()
[all …]
DSpecialSurfaceTest.cpp29 static const int kPad = 5; variable
30 static const int kFullSize = kSmallerSize + 2 * kPad;
71 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST()
75 test_surface(surf, reporter, kPad); in DEF_TEST()
DImageFilterCacheTest.cpp18 static const int kPad = 3; variable
19 static const int kFullSize = kSmallerSize + 2 * kPad;
143 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST()
161 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in test_image_backed()
266 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/gm/
Dstrokedlines.cpp20 constexpr int kPad = 5; // padding on both sides of the snowflake variable
51 canvas->clipRect(SkRect::MakeLTRB(-kRadius-kPad, -kRadius-kPad, kRadius+kPad, kRadius+kPad)); in draw_snowflake()
76 canvas->translate(kRadius+kPad, 0.0f); in draw_row()
91 canvas->translate(2*(kRadius+kPad), 0.0f); in draw_row()
112 return SkISize::Make(kNumColumns * (2*kRadius+2*kPad), kNumRows * (2*kRadius+2*kPad)); in onISize()
126 SkPoint pts[] = { {-kRadius-kPad, -kRadius-kPad }, { kRadius+kPad, kRadius+kPad } }; in onOnceBeforeDraw()
200 canvas->translate(0, kRadius+kPad); in onDraw()
207 canvas->translate(0, 2*(kRadius+kPad)); in onDraw()
215 canvas->translate(0, 2*(kRadius+kPad)); in onDraw()
Ddrawatlascolor.cpp69 return SkISize::Make(kNumXferModes * (kAtlasSize + kPad) + kPad, in onISize()
70 2 * kNumColors * (kAtlasSize + kPad) + kTextPad + kPad); in onISize()
129 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); in onDraw()
142 i*(target.width()+kPad)+kPad, SkIntToScalar(kTextPad), in onDraw()
148 canvas->translate(SkIntToScalar(i*(target.height()+kPad)), in onDraw()
149 SkIntToScalar(kTextPad+kPad)); in onDraw()
153 canvas->translate(0.0f, numColors*(target.height()+kPad)); in onDraw()
165 static constexpr int kPad = 2; member in DrawAtlasColorsGM
Dconstcolorprocessor.cpp83 SkScalar y = kPad; in onDraw()
84 SkScalar x = kPad; in onDraw()
137 renderRect.fRight + kPad, in onDraw()
140 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); in onDraw()
146 renderRect.fRight + kPad, in onDraw()
149 procLabelBounds.offset(renderRect.fRight + kPad, in onDraw()
162 y += height + kPad; in onDraw()
164 y = kPad; in onDraw()
165 x += maxW + kPad; in onDraw()
177 static constexpr SkScalar kPad = 10.f; member in skiagm::ConstColorProcessor
Dcirculararcs.cpp19 constexpr SkScalar kPad = 20.f; variable
39 canvas->translate(kPad + x, kPad + y); in draw_arcs()
45 canvas->translate(kRect.width() + kPad, 0.f); in draw_arcs()
48 canvas->translate(0, kRect.height() + kPad); in draw_arcs()
181 canvas->translate(kPad, kPad);
194 SkScalar midX = SK_ARRAY_COUNT(arcs) * (kS + kPad) - kPad/2.f;
195 SkScalar height = paints.count() * (kS + kPad);
196 canvas->drawLine(midX, -kPad, midX, height, linePaint);
203 canvas->translate(kS + kPad, 0.f);
207 canvas->translate(kS + kPad, 0.f);
[all …]
Dsimple_magnification.cpp82 return SkISize::Make(3*kPad+2*kImgSize, 3*kPad+2*kImgSize); in onISize()
111 int bigOffset = 2 * kPad + kImgSize; in onDraw()
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()
121 static const int kPad = 2; member in SimpleMagnificationGM
Dstroke_rect_shader.cpp28 constexpr SkScalar kPad = 20; variable
38 canvas->translate(kRect.width() + kPad, 0);
42 canvas->translate(kRect.width() + kPad, 0);
47 canvas->translate(kRect.width() + kPad, 0);
51 canvas->translate(kRect.width() + kPad, 0);
57 canvas->translate(0, kRect.height() + kPad);
Dpathmaskcache.cpp29 static constexpr SkScalar kPad = 5.f; in onDraw() local
48 canvas->translate(bounds.width() + kPad, 0.f); in onDraw()
55 canvas->translate(bounds.width() + kPad + 0.15f, 0.f); in onDraw()
62 canvas->translate(bounds.width() + kPad + 0.002f, 0.f); in onDraw()
68 return bounds.fBottom + kPad; in onDraw()
86 canvas->translate(kPad, kPad); in onDraw()
Dblurcircles2.cpp80 constexpr SkScalar kPad = 5; in onDraw() local
83 canvas->translate(kPad + kMinRadius + kMaxBlurRadius, in onDraw()
84 kPad + kMinRadius + kMaxBlurRadius); in onDraw()
92 lineWidth += 2 * (radius + kMaxBlurRadius) + kPad; in onDraw()
114 canvas->translate(0, 2 * maxRowR + kPad); in onDraw()
120 canvas->translate(maxColR * 2 + kPad, 0); in onDraw()
126 const SkScalar lineY = 3 * maxRowR + 1.5f * kPad; in onDraw()
131 canvas->translate(0, maxRowR * 4 + 2 * kPad); in onDraw()
Dbigrrectaaeffect.cpp33 fTestOffsetX = fTestWidth + kPad; in BigRRectAAEffectGM()
34 fTestOffsetY = fTestHeight + kPad; in BigRRectAAEffectGM()
38 fWidth = 2 * fTestOffsetX + kPad; in BigRRectAAEffectGM()
39 fHeight = fTestOffsetY + kPad; in BigRRectAAEffectGM()
61 int y = kPad; in onDraw()
62 int x = kPad; in onDraw()
102 static constexpr int kPad = 7; member in skiagm::BigRRectAAEffectGM
Drectangletexture.cpp131 constexpr SkScalar kPad = 5.f; in onDraw() local
154 canvas->translate(kPad, kPad); in onDraw()
162 canvas->translate(kWidth + kPad, 0); in onDraw()
168 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw()
175 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw()
178 canvas->translate(0, kPad + 1.5f * kHeight * s); in onDraw()
Dshadowutils.cpp36 static constexpr SkScalar kPad = 15.f; in draw_paths() local
44 canvas->translate(3 * kPad, 3 * kPad); in draw_paths()
59 SkScalar dx = w + kPad; in draw_paths()
60 if (x + dx > kW - 3 * kPad) { in draw_paths()
96 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight); in draw_paths()
Dreveal.cpp21 constexpr SkScalar kPad = 8.0f; variable
46 fRRect = SkRRect::MakeRectXY(r, 4*kPad, 4*kPad); in RRect()
105 fRRect = SkRRect::MakeRectXY(r, 2*kPad, 2*kPad); in StrokedRRect()
106 fStrokedBounds = r.makeOutset(kPad, kPad); in StrokedRRect()
121 paint.setStrokeWidth(kPad); in asPath()
133 stroke.setStrokeWidth(kPad); in draw()
373 cell.inset(kPad, kPad); in onDraw()
Dimagefromyuvtextures.cpp134 constexpr SkScalar kPad = 10.f; in onDraw() local
153 SkScalar y = (i + 1) * kPad + i * fYUVBmps[0].height(); in onDraw()
154 SkScalar x = kPad; in onDraw()
Dimage.cpp370 constexpr SkScalar kPad = 5.f; variable
371 canvas->translate(kPad, kPad);
381 canvas->translate(kSize + kPad, 0);
/external/skia/samplecode/
DSampleShadowUtils.cpp151 static constexpr SkScalar kPad = 15.f; in onDrawContent() local
158 canvas->translate(3 * kPad, 3 * kPad); in onDrawContent()
177 SkScalar dx = w + kPad; in onDrawContent()
178 if (x + dx > kW - 3 * kPad) { in onDrawContent()
194 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight); in onDrawContent()
DSampleLitAtlas.cpp229 for ( ; x < kBigSize+kPad; ++x) { in MakeAtlas()
426 static const int kPad = 1; member in DrawLitAtlasDrawable
427 static const int kAtlasWidth = kBigSize + kBigSize + 2 * kPad; // 2 pads in the middle
428 static const int kAtlasHeight = kBigSize + kMedSize + kSmSize + kMedSize + 3 * kPad;
431 static const int kNormXOff = kBigSize + 2 * kPad;
434 static const int kMedYOff = kBigSize + kPad;
435 static const int kSmYOff = kMedYOff + kMedSize + kPad;
436 static const int kShipYOff = kSmYOff + kSmSize + kPad;
/external/skia/src/gpu/ccpr/
DGrCCPRAtlas.cpp30 static constexpr int kPad = 1; in addRect() local
32 if (!fRectanizer.addRect(w + kPad, h + kPad, loc)) { in addRect()
/external/webrtc/webrtc/base/
Dbase64.cc27 static const char kPad = '='; variable
125 (*result)[dest_ix++] = kPad; in EncodeFromArray()
133 (*result)[dest_ix++] = kPad; in EncodeFromArray()
/external/skia/experimental/svg/model/
DSkSVGLinearGradient.h48 SkSVGSpreadMethod fSpreadMethod = SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad);
DSkSVGTypes.h202 kPad, // kClamp_TileMode enumerator
207 constexpr SkSVGSpreadMethod() : fType(Type::kPad) {} in SkSVGSpreadMethod()
DSkSVGLinearGradient.cpp133 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kPad) == in onAsPaint()
DSkSVGAttributeParser.cpp519 { SkSVGSpreadMethod::Type::kPad , "pad" }, in parseSpreadMethod()