/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 | 28 static const int kPad = 5; variable 29 static const int kFullSize = kSmallerSize + 2 * kPad; 70 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST() 74 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() 268 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 | gaussianedge.cpp | 103 return SkISize::Make(kPad + numCols*(kCellWidth+kPad), in onISize() 104 kPad + kNumRows*(kCellWidth+kPad)); in onISize() 168 canvas->translate(SkIntToScalar(kCellWidth+kPad), 0.0f); in DrawRow() 173 draw_row(canvas, midLine, 3*(kRRSize+kPad)); in DrawRow() 183 canvas->translate(SkIntToScalar(kCellWidth+kPad), 0.0f); in DrawRow() 198 canvas->translate(SkIntToScalar(kPad), SkIntToScalar(kPad)); in onDraw() 200 DrawRow(canvas, blurRadii[i], kPad+(i*kRRSize)+kRRSize/2); in onDraw() 201 canvas->translate(0.0f, SkIntToScalar(kCellWidth+kPad)); in onDraw() 208 static const int kPad = 5; member in skiagm::GaussianEdgeGM
|
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 | constcolorprocessor.cpp | 83 SkScalar y = kPad; in onDraw() 84 SkScalar x = kPad; in onDraw() 139 renderRect.fRight + kPad, in onDraw() 142 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); in onDraw() 148 renderRect.fRight + kPad, in onDraw() 151 procLabelBounds.offset(renderRect.fRight + kPad, in onDraw() 164 y += height + kPad; in onDraw() 166 y = kPad; in onDraw() 167 x += maxW + kPad; in onDraw() 179 static constexpr SkScalar kPad = 10.f; member in skiagm::ConstColorProcessor
|
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 | etc1.cpp | 35 return SkISize::Make(kTexWidth + 2*kPad, kTexHeight + 2*kPad); in onISize() 90 const SkMatrix trans = SkMatrix::MakeTrans(-kPad, -kPad); in onDraw() 100 SkRect rect = SkRect::MakeXYWH(kPad, kPad, kTexWidth, kTexHeight); in onDraw() 109 static const int kPad = 8; member in ETC1GM
|
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 | imagetoyuvplanes.cpp | 40 constexpr SkScalar kPad = 5.f; variable 49 canvas->drawImage(rgbImage.get(), kPad, kPad); 66 SkScalar x = kPad; 68 SkScalar y = rgbImage->height() + 2 * kPad; 104 y += kPad + yuvBmps[i].height(); 109 x += rgbImage->width() + kPad;
|
D | shadowutils.cpp | 43 static constexpr SkScalar kPad = 15.f; in DEF_SIMPLE_GM() local 47 canvas->translate(3 * kPad, 3 * kPad); in DEF_SIMPLE_GM() 62 SkScalar dx = w + kPad; in DEF_SIMPLE_GM() 63 if (x + dx > kW - 3 * kPad) { in DEF_SIMPLE_GM() 89 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight); in DEF_SIMPLE_GM()
|
D | rectangletexture.cpp | 132 constexpr SkScalar kPad = 5.f; in onDraw() local 155 canvas->translate(kPad, kPad); in onDraw() 163 canvas->translate(kWidth + kPad, 0); in onDraw() 170 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw() 177 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw() 180 canvas->translate(0, kPad + 1.5f * kHeight * s); in onDraw()
|
D | reveal.cpp | 22 constexpr SkScalar kPad = 8.0f; variable 47 fRRect = SkRRect::MakeRectXY(r, 4*kPad, 4*kPad); in RRect() 106 fRRect = SkRRect::MakeRectXY(r, 2*kPad, 2*kPad); in StrokedRRect() 107 fStrokedBounds = r.makeOutset(kPad, kPad); in StrokedRRect() 122 paint.setStrokeWidth(kPad); in asPath() 134 stroke.setStrokeWidth(kPad); in draw() 375 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 | 371 constexpr SkScalar kPad = 5.f; variable 372 canvas->translate(kPad, kPad); 382 canvas->translate(kSize + kPad, 0);
|
/external/skia/samplecode/ |
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/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()
|