/external/skia/gm/ |
stroke_rect_shader.cpp | 28 constexpr SkScalar kPad = 20; 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);
|
strokedlines.cpp | 20 constexpr int kPad = 5; // padding on both sides of the snowflake 51 canvas->clipRect(SkRect::MakeLTRB(-kRadius-kPad, -kRadius-kPad, kRadius+kPad, kRadius+kPad)); 76 canvas->translate(kRadius+kPad, 0.0f); 91 canvas->translate(2*(kRadius+kPad), 0.0f); 112 return SkISize::Make(kNumColumns * (2*kRadius+2*kPad), kNumRows * (2*kRadius+2*kPad)); 126 SkPoint pts[] = { {-kRadius-kPad, -kRadius-kPad }, { kRadius+kPad, kRadius+kPad } } [all...] |
blurcircles2.cpp | 80 constexpr SkScalar kPad = 5; 83 canvas->translate(kPad + kMinRadius + kMaxBlurRadius, 84 kPad + kMinRadius + kMaxBlurRadius); 92 lineWidth += 2 * (radius + kMaxBlurRadius) + kPad; 114 canvas->translate(0, 2 * maxRowR + kPad); 120 canvas->translate(maxColR * 2 + kPad, 0); 126 const SkScalar lineY = 3 * maxRowR + 1.5f * kPad; 131 canvas->translate(0, maxRowR * 4 + 2 * kPad);
|
simple_magnification.cpp | 82 return SkISize::Make(3*kPad+2*kImgSize, 3*kPad+2*kImgSize); 111 int bigOffset = 2 * kPad + kImgSize; 113 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, kPad), 1); 114 this->draw(canvas, topLImg, SkIPoint::Make(bigOffset, kPad), 1); 115 this->draw(canvas, bottomLImg, SkIPoint::Make(kPad, bigOffset), 7); 121 static const int kPad = 2;
|
drawatlascolor.cpp | 69 return SkISize::Make(kNumXferModes * (kAtlasSize + kPad) + kPad, 70 2 * kNumColors * (kAtlasSize + kPad) + kTextPad + kPad); 129 xforms[i].set(1.0f, 0.0f, SkIntToScalar(kPad), i*(target.width()+kPad)); 142 i*(target.width()+kPad)+kPad, SkIntToScalar(kTextPad), 148 canvas->translate(SkIntToScalar(i*(target.height()+kPad)), 149 SkIntToScalar(kTextPad+kPad)); [all...] |
bigrrectaaeffect.cpp | 33 fTestOffsetX = fTestWidth + kPad; 34 fTestOffsetY = fTestHeight + kPad; 38 fWidth = 2 * fTestOffsetX + kPad; 39 fHeight = fTestOffsetY + kPad; 61 int y = kPad; 62 int x = kPad; 102 static constexpr int kPad = 7;
|
pathmaskcache.cpp | 29 static constexpr SkScalar kPad = 5.f; 48 canvas->translate(bounds.width() + kPad, 0.f); 55 canvas->translate(bounds.width() + kPad + 0.15f, 0.f); 62 canvas->translate(bounds.width() + kPad + 0.002f, 0.f); 68 return bounds.fBottom + kPad; 86 canvas->translate(kPad, kPad);
|
circulararcs.cpp | 19 constexpr SkScalar kPad = 20.f; 39 canvas->translate(kPad + x, kPad + y); 45 canvas->translate(kRect.width() + kPad, 0.f); 48 canvas->translate(0, kRect.height() + kPad); 181 canvas->translate(kPad, kPad); 194 SkScalar midX = SK_ARRAY_COUNT(arcs) * (kS + kPad) - kPad/2.f; 195 SkScalar height = paints.count() * (kS + kPad); [all...] |
constcolorprocessor.cpp | 83 SkScalar y = kPad; 84 SkScalar x = kPad; 137 renderRect.fRight + kPad, 140 inputLabelBounds.offset(renderRect.fRight + kPad, -inputLabelBounds.fTop); 146 renderRect.fRight + kPad, 149 procLabelBounds.offset(renderRect.fRight + kPad, 162 y += height + kPad; 164 y = kPad; 165 x += maxW + kPad; 177 static constexpr SkScalar kPad = 10.f [all...] |
shadowutils.cpp | 36 static constexpr SkScalar kPad = 15.f; 44 canvas->translate(3 * kPad, 3 * kPad); 59 SkScalar dx = w + kPad; 60 if (x + dx > kW - 3 * kPad) { 96 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight);
|
rectangletexture.cpp | 131 constexpr SkScalar kPad = 5.f; 154 canvas->translate(kPad, kPad); 162 canvas->translate(kWidth + kPad, 0); 168 canvas->translate(kWidth * 1.5f + kPad, 0); 175 canvas->translate(1.5f * kWidth + kPad, 0); 178 canvas->translate(0, kPad + 1.5f * kHeight * s);
|
reveal.cpp | 21 constexpr SkScalar kPad = 8.0f; 46 fRRect = SkRRect::MakeRectXY(r, 4*kPad, 4*kPad); 105 fRRect = SkRRect::MakeRectXY(r, 2*kPad, 2*kPad); 106 fStrokedBounds = r.makeOutset(kPad, kPad); 121 paint.setStrokeWidth(kPad); 133 stroke.setStrokeWidth(kPad); 373 cell.inset(kPad, kPad) [all...] |
imagefromyuvtextures.cpp | 134 constexpr SkScalar kPad = 10.f; 153 SkScalar y = (i + 1) * kPad + i * fYUVBmps[0].height(); 154 SkScalar x = kPad;
|
image.cpp | 370 constexpr SkScalar kPad = 5.f; 371 canvas->translate(kPad, kPad); 381 canvas->translate(kSize + kPad, 0);
|
/external/skia/tests/ |
SpecialImageTest.cpp | 32 static const int kPad = 3; 33 static const int kFullSize = kSmallerSize + 2 * kPad; 47 temp.drawRect(SkRect::MakeXYWH(SkIntToScalar(kPad), SkIntToScalar(kPad), 98 img->draw(canvas, SkIntToScalar(kPad), SkIntToScalar(kPad), nullptr); 107 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1)); 108 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad)); [all...] |
SpecialSurfaceTest.cpp | 29 static const int kPad = 5; 30 static const int kFullSize = kSmallerSize + 2 * kPad; 71 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); 75 test_surface(surf, reporter, kPad);
|
ImageFilterCacheTest.cpp | 18 static const int kPad = 3; 19 static const int kFullSize = kSmallerSize + 2 * kPad; 143 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); 161 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); 266 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
|
/external/skia/experimental/svg/model/ |
SkSVGLinearGradient.h | 48 SkSVGSpreadMethod fSpreadMethod = SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad);
|
SkSVGTypes.h | 202 kPad, // kClamp_TileMode 207 constexpr SkSVGSpreadMethod() : fType(Type::kPad) {}
|
SkSVGLinearGradient.cpp | 133 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kPad) ==
|
SkSVGAttributeParser.cpp | 519 { SkSVGSpreadMethod::Type::kPad , "pad" },
|
/external/skia/samplecode/ |
SampleShadowUtils.cpp | 151 static constexpr SkScalar kPad = 15.f; 158 canvas->translate(3 * kPad, 3 * kPad); 177 SkScalar dx = w + kPad; 178 if (x + dx > kW - 3 * kPad) { 194 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight);
|
SampleLitAtlas.cpp | 229 for ( ; x < kBigSize+kPad; ++x) { 426 static const int kPad = 1; 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/ |
GrCCPRAtlas.cpp | 30 static constexpr int kPad = 1; 32 if (!fRectanizer.addRect(w + kPad, h + kPad, loc)) {
|
/external/webrtc/webrtc/base/ |
base64.cc | 27 static const char kPad = '='; 125 (*result)[dest_ix++] = kPad; 133 (*result)[dest_ix++] = kPad;
|