Searched refs:kBoxSize (Results 1 – 6 of 6) sorted by relevance
/external/skia/gm/ |
D | blurquickreject.cpp | 44 constexpr SkScalar kBoxSize = SkIntToScalar(100); in onDraw() local 46 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() 48 { -kBoxSize - (kBlurRadius+1), 0, -(kBlurRadius+1), kBoxSize }, in onDraw() 49 { 0, -kBoxSize - (kBlurRadius+1), kBoxSize, -(kBlurRadius+1) }, in onDraw() 50 { kBoxSize+kBlurRadius+1, 0, 2*kBoxSize+kBlurRadius+1, kBoxSize }, in onDraw() 51 { 0, kBoxSize+kBlurRadius+1, kBoxSize, 2*kBoxSize+kBlurRadius+1 } in onDraw() 73 canvas->translate(kBoxSize, kBoxSize); in onDraw()
|
D | sharedcorners.cpp | 29 static constexpr int kBoxSize = 100; variable 46 return SkISize::Make(numCols * (kBoxSize + kPadSize) + kPadSize, in onISize() 47 numRows * (kBoxSize + kPadSize) + kPadSize); in onISize() 88 canvas->translate((kBoxSize + kPadSize) * 4, 0); in onDraw() 123 SkScalar scale = kBoxSize / std::max(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes() 127 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 133 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 138 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 144 canvas->translate((kBoxSize - bounds.width()) / 2 - bounds.left(), in drawRow() 145 (kBoxSize - bounds.height()) / 2 - bounds.top()); in drawRow() [all …]
|
/external/skqp/gm/ |
D | blurquickreject.cpp | 35 constexpr SkScalar kBoxSize = SkIntToScalar(100); in onDraw() local 37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() 39 { -kBoxSize - (kBlurRadius+1), 0, -(kBlurRadius+1), kBoxSize }, in onDraw() 40 { 0, -kBoxSize - (kBlurRadius+1), kBoxSize, -(kBlurRadius+1) }, in onDraw() 41 { kBoxSize+kBlurRadius+1, 0, 2*kBoxSize+kBlurRadius+1, kBoxSize }, in onDraw() 42 { 0, kBoxSize+kBlurRadius+1, kBoxSize, 2*kBoxSize+kBlurRadius+1 } in onDraw() 64 canvas->translate(kBoxSize, kBoxSize); in onDraw()
|
D | sharedcorners.cpp | 20 static constexpr int kBoxSize = 100; variable 39 return SkISize::Make(numCols * (kBoxSize + kPadSize) + kPadSize, in onISize() 40 numRows * (kBoxSize + kPadSize) + kPadSize); in onISize() 81 canvas->translate((kBoxSize + kPadSize) * 4, 0); in onDraw() 116 SkScalar scale = kBoxSize / SkTMax(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes() 120 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 126 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 131 canvas->translate(0, kBoxSize + kPadSize); in drawTriangleBoxes() 137 canvas->translate((kBoxSize - bounds.width()) / 2 - bounds.left(), in drawRow() 138 (kBoxSize - bounds.height()) / 2 - bounds.top()); in drawRow() [all …]
|
/external/skqp/tests/ |
D | GrMeshTest.cpp | 33 static constexpr int kBoxSize = 2; variable 38 static constexpr int kImageWidth = kBoxCountY * kBoxSize; 39 static constexpr int kImageHeight = kBoxCountX * kBoxSize; 115 float(x * kBoxSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 116 float(y * kBoxSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 123 box.fX + (i / 2) * kBoxSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 124 box.fY + (i % 2) * kBoxSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 130 goldCanvas.drawRect(SkRect::MakeXYWH(box.fX, box.fY, kBoxSize, kBoxSize), paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 360 kBoxSize); in onEmitCode()
|
/external/skia/tests/ |
D | GrMeshTest.cpp | 34 static constexpr int kBoxSize = 2; variable 39 static constexpr int kImageWidth = kBoxCountY * kBoxSize; 40 static constexpr int kImageHeight = kBoxCountX * kBoxSize; 119 float(x * kBoxSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 120 float(y * kBoxSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 127 box.fX + (i / 2) * kBoxSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 128 box.fY + (i % 2) * kBoxSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 134 goldCanvas.drawRect(SkRect::MakeXYWH(box.fX, box.fY, kBoxSize, kBoxSize), paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 393 kBoxSize); in onEmitCode()
|