Home
last modified time | relevance | path

Searched refs:centerX (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/
H A DesextcTextureBorderClampSamplingTexture.cpp1030 glw::GLuint centerX = w / 2; in checkLinear() local
1047 { centerX + w / 6, centerY }, in checkLinear()
1048 { centerX - w / 6, centerY }, in checkLinear()
1049 { centerX, centerY + h / 6 }, in checkLinear()
1050 { centerX, centerY - h / 6 }, in checkLinear()
1072 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1076 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1078 << "at point (x, y) = (" << centerX << "," << y in checkLinear()
1091 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1095 << ") when moving from center point (x, y) = (" << centerX << "," << center in checkLinear()
[all...]
/third_party/skia/tests/
H A DPathOpsAsWindingTest.cpp21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
38 path.cubicTo(rect.fRight, aY34, aX34, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
40 path.cubicTo(rect.fLeft, aY14, aX14, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
/third_party/skia/gm/
H A Daddarc.cpp281 SkScalar centerX = 50; in DEF_SIMPLE_GM() local
289 path.moveTo(centerX + innerRadius * sk_float_cos(startAngles[i]), in DEF_SIMPLE_GM()
291 path.lineTo(centerX + outerRadius * sk_float_cos(startAngles[i]), in DEF_SIMPLE_GM()
294 html_canvas_arc(&path, centerX, outerRadius, outerRadius, in DEF_SIMPLE_GM()
297 path.lineTo(centerX + innerRadius * sk_float_cos(endAngle), in DEF_SIMPLE_GM()
299 html_canvas_arc(&path, centerX, outerRadius, innerRadius, in DEF_SIMPLE_GM()
H A Dpictureimagegenerator.cpp73 canvas->drawCircle(iBox.centerX(), in draw_vector_logo()
79 path.moveTo(iBox.centerX() - accentSize / 2, iBox.bottom() + kVerticalSpacing * accentSize); in draw_vector_logo()
81 path.lineTo(iBox.centerX(), underlineY); in draw_vector_logo()
84 SkRect underlineRect = SkRect::MakeLTRB(iBox.centerX() - iBox.width() * accentSize * 3, in draw_vector_logo()
86 iBox.centerX(), in draw_vector_logo()
89 SkPoint::Make(iBox.centerX(), 0) }; in draw_vector_logo()
H A Dorientation.cpp97 drawLabel("top", midX - bounds.centerX(), -bounds.top() + kPad); in make_images()
100 drawLabel("bottom", midX - bounds.centerX(), kImgH - kPad - bounds.bottom()); in make_images()
113 drawLabel(num.c_str(), midX - bounds.centerX(), baseY); in make_images()
H A Dlocalmatrixshader.cpp187 auto g1 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()}, in DEF_SIMPLE_GM()
193 auto g2 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()}, in DEF_SIMPLE_GM()
200 auto g3 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()}, in DEF_SIMPLE_GM()
206 auto g4 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()}, in DEF_SIMPLE_GM()
H A Dfilltypespersp.cpp59 canvas->translate(r.centerX(), r.centerY()); in showPath()
61 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
H A Dfilltypes.cpp55 canvas->translate(r.centerX(), r.centerY()); in showPath()
57 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
H A Dsharedcorners.cpp130 rot.setRotate(45, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes()
135 rot.setRotate(-45 - 69.38111f, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes()
H A Ddropshadowimagefilter.cpp47 canvas->drawCircle(r.centerX(), r.centerY(), r.width()/3, paint); in draw_path()
60 SkTextUtils::DrawString(canvas, "Text", r.centerX(), r.centerY(), font, paint, SkTextUtils::kCenter_Align); in draw_text()
/third_party/skia/docs/examples/
H A DRect_centerX.cpp9 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in REG_FIDDLE()
11 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in REG_FIDDLE()
H A DMatrix_setRSXform.cpp14 matrix.setRSXform(SkRSXform::Make(.85f, .25f, rect.centerX(), rect.centerY())); in REG_FIDDLE()
16 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
H A DMatrix_setRotate_2.cpp15 canvas->translate(rect.centerX(), rect.centerY()); in REG_FIDDLE()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
H A DMatrix_setSinCos_2.cpp15 matrix.postTranslate(rect.centerX(), rect.centerY()); in REG_FIDDLE()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
H A DRect_centerY.cpp8 SkDebugf("left: %g right: %g centerX: %g ", rect.left(), rect.right(), rect.centerX()); in REG_FIDDLE()
H A DMatrix_setRotate.cpp14 matrix.setRotate(25, rect.centerX(), rect.centerY()); in REG_FIDDLE()
H A DMatrix_mapRectScaleTranslate.cpp10 matrix.setScale(2, .5f, rect.centerX(), rect.centerY()); in REG_FIDDLE()
/third_party/backends/include/sane/
H A Dsanei_magic.h90 * @param[out] centerX horizontal coordinate of center of rotation
102 int dpiX, int dpiY, int * centerX, int * centerY, double * finSlope);
108 * @param centerX horizontal coordinate of center of rotation
120 int centerX, int centerY, double slope, int bg_color);
/third_party/skia/samplecode/
H A DSampleFillType.cpp40 canvas->translate(r.centerX(), r.centerY()); in showPath()
42 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
H A DSampleArc.cpp92 canvas->drawLine(r.centerX(), r.fTop, r.centerX(), r.fBottom, p); in DrawRectWithLines()
101 SkTextUtils::DrawString(canvas, str.c_str(), rect.centerX(), in DrawLabel()
H A DSampleFilterBounds.cpp113 SkPoint pts[] = {{key.centerX(), key.fTop}, {key.centerX(), key.fBottom}}; in draw_scale_key()
128 testPoints[0] = {rect.centerX(), rect.centerY()}; in draw_scale_factors()
198 skif::ParameterSpace<SkPoint> contentCenter({localContentRect.centerX(),
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DProvokingVertexTest.cpp234 float centerX = sumX / 3.0f * 0.5f + 0.5f; in TEST_P() local
237 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
290 float centerX = sumX / 3.0f * 0.5f + 0.5f; in TEST_P() local
293 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fPrimitiveRestartTests.cpp323 float centerX = -1.0f + 2.0f * ((float)col + 0.5f) / (float)numCols; in init() local
328 float fx = centerX + 0.9f * deFloatCos((float)i*2.0f*DE_PI / (float)numVertices) / (float)numCols; in init()
390 float centerX = -1.0f + 2.0f * ((float)col + 0.5f) / (float)numCols; in init() local
393 m_positions.push_back(centerX); in init()
400 float fx = centerX + 0.9f * deFloatCos((float)i*2.0f*DE_PI / (float)numArcVertices) / (float)numCols; in init()
/third_party/skia/modules/sksg/samples/
H A DSampleSVGPong.cpp94 SkPoint::Make(kBounds.centerX(), kBounds.centerY()),
114 bgPath.moveTo(kBounds.centerX(),
116 .lineTo(kBounds.centerX(),
243 SkPoint shadowOffset = pos - SkPoint::Make(kBounds.centerX(), kBounds.centerY()); in updateDom()
/third_party/skia/experimental/sktext/tests/
H A DSelectableText.cpp288 REPORTER_ASSERT(reporter, position.fBoundaries.centerX() >= down.fBoundaries.centerX()); in UNIX_ONLY_TEST()
297 REPORTER_ASSERT(reporter, position.fBoundaries.centerX() >= down.fBoundaries.centerX()); in UNIX_ONLY_TEST()

Completed in 11 milliseconds

12345