Home
last modified time | relevance | path

Searched refs:SkTPin (Results 1 – 25 of 132) sorted by relevance

123456

/external/skia/src/gpu/ccpr/
DGrOctoBounds.cpp38 b = SkTPin(r - l45, t, b); in clip()
44 r = SkTPin(b + r45, l, r); in clip()
51 l = SkTPin(t + l45, l, r); in clip()
57 t = SkTPin(l - r45, t, b); in clip()
64 l = SkTPin(t45 - b, l, r); in clip()
70 b = SkTPin(b45 - l, t, b); in clip()
77 t = SkTPin(t45 - r, t, b); in clip()
83 r = SkTPin(b45 - t, l, r); in clip()
90 l45 = SkTPin(Get_x45(l,b), l45, r45); in clip()
91 t45 = SkTPin(Get_y45(l,t), t45, b45); in clip()
[all …]
DGrCCAtlas.cpp20 width = SkTPin(width, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in choose_initial_atlas_size()
21 height = SkTPin(height, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in choose_initial_atlas_size()
/external/skia/src/gpu/effects/generated/
DGrClampFragmentProcessor.h21 float clampedAlpha = SkTPin(input.fA, 0.f, 1.f); in constantOutputForConstantInput()
23 return {SkTPin(input.fR, 0.f, clampVal), SkTPin(input.fG, 0.f, clampVal), in constantOutputForConstantInput()
24 SkTPin(input.fB, 0.f, clampVal), clampedAlpha}; in constantOutputForConstantInput()
DGrColorMatrixFragmentProcessor.h32 color.fA = SkTPin(color.fA, 0.f, 1.f); in constantOutputForConstantInput()
34 color.fR = SkTPin(color.fR, 0.f, 1.f); in constantOutputForConstantInput()
35 color.fG = SkTPin(color.fG, 0.f, 1.f); in constantOutputForConstantInput()
36 color.fB = SkTPin(color.fB, 0.f, 1.f); in constantOutputForConstantInput()
/external/skia/src/gpu/effects/
DGrClampFragmentProcessor.fp26 float clampedAlpha = SkTPin(input.fA, 0.f, 1.f);
28 return {SkTPin(input.fR, 0.f, clampVal),
29 SkTPin(input.fG, 0.f, clampVal),
30 SkTPin(input.fB, 0.f, clampVal),
DGrColorMatrixFragmentProcessor.fp50 color.fA = SkTPin(color.fA, 0.f, 1.f);
52 color.fR = SkTPin(color.fR, 0.f, 1.f);
53 color.fG = SkTPin(color.fG, 0.f, 1.f);
54 color.fB = SkTPin(color.fB, 0.f, 1.f);
/external/skia/modules/skottie/src/
DSkottieValue.cpp76 return SkColorSetARGB(SkScalarRoundToInt(SkTPin(a, 0.0f, 1.0f) * 255), in As()
77 SkScalarRoundToInt(SkTPin(r, 0.0f, 1.0f) * 255), in As()
78 SkScalarRoundToInt(SkTPin(g, 0.0f, 1.0f) * 255), in As()
79 SkScalarRoundToInt(SkTPin(b, 0.0f, 1.0f) * 255)); in As()
86 const auto r = v.size() > 0 ? SkTPin(v[0], 0.0f, 1.0f) : 0, in As()
87 g = v.size() > 1 ? SkTPin(v[1], 0.0f, 1.0f) : 0, in As()
88 b = v.size() > 2 ? SkTPin(v[2], 0.0f, 1.0f) : 0, in As()
89 a = v.size() > 3 ? SkTPin(v[3], 0.0f, 1.0f) : 1; in As()
/external/skqp/gm/
Djpg_color_cube.cpp37 SkTPin(r * 4, 0, 255), in onOnceBeforeDraw()
38 SkTPin(g * 4, 0, 255), in onOnceBeforeDraw()
39 SkTPin(b * 4, 0, 255)); in onOnceBeforeDraw()
Danimatedimageblurs.cpp106 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update()
110 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update()
/external/skia/gm/
Djpg_color_cube.cpp46 SkTPin(r * 4, 0, 255), in onOnceBeforeDraw()
47 SkTPin(g * 4, 0, 255), in onOnceBeforeDraw()
48 SkTPin(b * 4, 0, 255)); in onOnceBeforeDraw()
Danimatedimageblurs.cpp113 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update()
117 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update()
/external/skqp/include/core/
DSkFontStyle.h48 (SkTPin<int>(weight, kInvisible_Weight, kExtraBlack_Weight)) + in SkFontStyle()
49 (SkTPin<int>(width, kUltraCondensed_Width, kUltraExpanded_Width) << 16) + in SkFontStyle()
50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) in SkFontStyle()
/external/skia/include/core/
DSkFontStyle.h48 (SkTPin<int>(weight, kInvisible_Weight, kExtraBlack_Weight)) + in SkFontStyle()
49 (SkTPin<int>(width, kUltraCondensed_Width, kUltraExpanded_Width) << 16) + in SkFontStyle()
50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) in SkFontStyle()
/external/skia/modules/skottie/src/text/
DRangeSelector.cpp120 dst->coverage = SkTPin<float>(dst->coverage + amount, -1, 1); in add_proc()
356 const auto amount = SkTPin<float>(fAmount / 100, -1, 1), in modulateCoverage()
357 ease_lo = SkTPin<float>(fEaseLo / 100, -1, 1), in modulateCoverage()
358 ease_hi = SkTPin<float>(fEaseHi / 100, -1, 1); in modulateCoverage()
375 const auto smoothness = SkTPin<float>(fSmoothness / 100, 0, 1); in modulateCoverage()
/external/skia/experimental/svg/model/
DSkSVGNode.cpp77 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setFillOpacity()
86 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setOpacity()
103 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setStrokeOpacity()
/external/skqp/experimental/svg/model/
DSkSVGNode.cpp77 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setFillOpacity()
86 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setOpacity()
103 SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1))); in setStrokeOpacity()
/external/skia/modules/skottie/src/effects/
DGaussianBlurEffect.cpp56 const auto dim_index = SkTPin<size_t>(static_cast<size_t>(fDimensions), in onSync()
71 const auto repeat_index = SkTPin<size_t>(static_cast<size_t>(fRepeatEdge), in onSync()
DHueSaturationEffect.cpp90 s = SkTPin(fMasterSat / 100, -1.0f, 1.0f), in makeColorFilter()
91 l = SkTPin(fMasterLight / 100, -1.0f, 1.0f), in makeColorFilter()
DLevelsEffect.cpp48 clip[idx] = SkTPin(out_0, 0.0f, 1.0f); in build_lut()
52 clip[idx] = SkTPin(out_1, 0.0f, 1.0f); in build_lut()
89 lut_storage[i] = static_cast<uint8_t>(std::round(SkTPin(out, clip[0], clip[1]) * 255)); in build_lut()
/external/skqp/src/effects/
DSkTrimPathEffect.cpp111 startT = SkTPin(startT, 0.f, 1.f); in Make()
112 stopT = SkTPin(stopT, 0.f, 1.f); in Make()
/external/skia/src/effects/
DSkTrimPathEffect.cpp111 startT = SkTPin(startT, 0.f, 1.f); in Make()
112 stopT = SkTPin(stopT, 0.f, 1.f); in Make()
/external/skqp/modules/skottie/src/
DSkottieValue.cpp75 return SkColorSetARGB(SkScalarRoundToInt(SkTPin(a, 0.0f, 1.0f) * 255), in As()
76 SkScalarRoundToInt(SkTPin(r, 0.0f, 1.0f) * 255), in As()
77 SkScalarRoundToInt(SkTPin(g, 0.0f, 1.0f) * 255), in As()
78 SkScalarRoundToInt(SkTPin(b, 0.0f, 1.0f) * 255)); in As()
/external/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp110 x = SkTPin(x, bounds.fLeft, bounds.fRight - 1); in fetch()
111 y = SkTPin(y, bounds.fTop, bounds.fBottom - 1); in fetch()
294 ? SkTPin(SkScalarFloorToInt(sumA * fGain + fBias), 0, 255) in filterPixels()
296 int r = SkTPin(SkScalarFloorToInt(sumR * fGain + fBias), 0, a); in filterPixels()
297 int g = SkTPin(SkScalarFloorToInt(sumG * fGain + fBias), 0, a); in filterPixels()
298 int b = SkTPin(SkScalarFloorToInt(sumB * fGain + fBias), 0, a); in filterPixels()
/external/skia/src/gpu/
DSkGr.cpp361 grPaint->setColor4f({SkTPin(color.fR, 0.f, 1.f), in skpaint_to_grpaint_impl()
362 SkTPin(color.fG, 0.f, 1.f), in skpaint_to_grpaint_impl()
363 SkTPin(color.fB, 0.f, 1.f), in skpaint_to_grpaint_impl()
364 SkTPin(color.fA, 0.f, 1.f)}); in skpaint_to_grpaint_impl()
/external/skia/src/core/
DSkCompressedDataUtils.cpp77 int r8 = SkTPin(col.fR + delta, 0, 255); in add_delta_and_clamp()
78 int g8 = SkTPin(col.fG + delta, 0, 255); in add_delta_and_clamp()
79 int b8 = SkTPin(col.fB + delta, 0, 255); in add_delta_and_clamp()

123456