/external/skia/tests/ |
D | SpecialImageTest.cpp | 32 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 …]
|
D | SpecialSurfaceTest.cpp | 29 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()
|
D | ImageFilterCacheTest.cpp | 18 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/ |
D | strokedlines.cpp | 20 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()
|
D | drawatlascolor.cpp | 69 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
|
D | constcolorprocessor.cpp | 83 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
|
D | circulararcs.cpp | 19 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 …]
|
D | simple_magnification.cpp | 82 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
|
D | stroke_rect_shader.cpp | 28 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);
|
D | pathmaskcache.cpp | 29 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()
|
D | blurcircles2.cpp | 80 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()
|
D | bigrrectaaeffect.cpp | 33 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
|
D | rectangletexture.cpp | 131 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()
|
D | shadowutils.cpp | 36 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()
|
D | reveal.cpp | 21 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()
|
D | imagefromyuvtextures.cpp | 134 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()
|
D | image.cpp | 370 constexpr SkScalar kPad = 5.f; variable 371 canvas->translate(kPad, kPad); 381 canvas->translate(kSize + kPad, 0);
|
/external/skia/samplecode/ |
D | SampleShadowUtils.cpp | 151 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()
|
D | SampleLitAtlas.cpp | 229 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/ |
D | GrCCPRAtlas.cpp | 30 static constexpr int kPad = 1; in addRect() local 32 if (!fRectanizer.addRect(w + kPad, h + kPad, loc)) { in addRect()
|
/external/webrtc/webrtc/base/ |
D | base64.cc | 27 static const char kPad = '='; variable 125 (*result)[dest_ix++] = kPad; in EncodeFromArray() 133 (*result)[dest_ix++] = kPad; in EncodeFromArray()
|
/external/skia/experimental/svg/model/ |
D | SkSVGLinearGradient.h | 48 SkSVGSpreadMethod fSpreadMethod = SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad);
|
D | SkSVGTypes.h | 202 kPad, // kClamp_TileMode enumerator 207 constexpr SkSVGSpreadMethod() : fType(Type::kPad) {} in SkSVGSpreadMethod()
|
D | SkSVGLinearGradient.cpp | 133 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kPad) == in onAsPaint()
|
D | SkSVGAttributeParser.cpp | 519 { SkSVGSpreadMethod::Type::kPad , "pad" }, in parseSpreadMethod()
|