Home
last modified time | relevance | path

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

/third_party/flutter/skia/bench/
DColorPrivBench.cpp12 template <bool kFast, bool kScale>
18 fName.append(kScale ? "_255" : "_256"); in FourByteInterpBench()
39 if (kScale) fScales[256] = 255; // We'll just do 255 twice if we're limited to [0,255]. in onDelayedSetup()
60 if (kFast && kScale) { in onDraw()
64 } else if (kScale) { in onDraw()
/third_party/skia/bench/
DColorPrivBench.cpp12 template <bool kFast, bool kScale>
18 fName.append(kScale ? "_255" : "_256"); in FourByteInterpBench()
39 if (kScale) fScales[256] = 255; // We'll just do 255 twice if we're limited to [0,255]. in onDelayedSetup()
60 if (kFast && kScale) { in onDraw()
64 } else if (kScale) { in onDraw()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DWhiteNoise.h19 const int kScale; variable
21 WhiteNoise(int scale): kScale(scale) {} in WhiteNoise()
29 float ret = r_0 + counter * (r_1 - r_0) / kScale; in operator()
30 if (++counter == kScale) counter = 0; in operator()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/
DDriveControl.h28 mFunction(function), kScale(scale) {} in DriveControl()
31 std::for_each(beg, end, [this](auto &x){x *= kScale;}); in operator()
38 const double kScale; variable
39 const double recip = 1 / kScale;
/third_party/skia/gm/
Drsxtext.cpp26 return SkISize::Make(kSZ*kScale*2.1f, kSZ*kScale*2.1f); in onISize()
60 canvas->scale(kScale, kScale); in onDraw()
105 kScale = 1.4f; member in RSXShaderGM
Dyuv420_odd_dim.cpp23 static constexpr int kScale = 10; variable
56 kScale* kImageDim.width(), kScale* kImageDim.height()) {
81 canvas->scale(kScale, kScale);
Dblurredclippedcircle.cpp49 constexpr float kScale = 2.0f; in onDraw() local
50 canvas->scale(kScale, kScale); in onDraw()
Ddashing.cpp622 static constexpr SkScalar kScale = 100.f; variable
623 static constexpr SkScalar kIntervals[] = {10/kScale, 5/kScale};
626 paint.setStrokeWidth(0.25f/kScale);
628 static constexpr SkScalar kSubstep = 0.05f/kScale;
631 canvas->scale(kScale, kScale);
635 for (SkScalar x = -.5f*kIntervals[1]; x < 105/kScale; x += (kStep + kSubstep)) {
636 canvas->drawLine({x, 0}, {x, 100/kScale}, paint);
637 canvas->drawLine({0, x}, {100/kScale, x}, paint);
639 canvas->translate(110/kScale, 0);
Dimage_shader.cpp170 constexpr float kScale = 1.0f/6; variable
171 const SkRect dst = {0, 0, kScale*N, kScale*N};
Dtrickycubicstrokes.cpp101 kScale enumerator
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dclock.cc139 enum { kScale = 30 }; enumerator
149 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
359 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
370 int safe_shift = kScale; in SafeDivideAndScale()
374 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
426 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
481 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/third_party/skia/tools/viewer/
DStatsLayer.cpp77 static constexpr SkScalar kScale = 1.5; in onPaint() local
79 SkScalar kScale = fDisplayScale; in onPaint() local
102 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
104 canvasSize.width() * kScale, in onPaint()
105 canvasSize.height() * kScale))); in onPaint()
/third_party/flutter/skia/tools/viewer/
DStatsLayer.cpp77 static constexpr SkScalar kScale = 1.5; in onPaint() local
79 SkScalar kScale = fDisplayScale; in onPaint() local
102 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
104 canvasSize.width() * kScale, in onPaint()
105 canvasSize.height() * kScale), in onPaint()
/third_party/flutter/skia/gm/
Dblurredclippedcircle.cpp50 constexpr float kScale = 2.0f; in onDraw() local
51 canvas->scale(kScale, kScale); in onDraw()
Dlightingshader.cpp126 m.postTranslate(kScale * v.fX, kScale * v.fY); in drawPair()
155 static constexpr SkScalar kScale = kGMSize/2.0f - kTexSize/2.0f; member in skiagm::LightingShaderGM
/third_party/skia/src/gpu/tessellate/
DWangsFormula.h78 fType = Type::kScale;
91 case Type::kScale: in operator()
102 case Type::kScale: in operator()
110 enum class Type { kIdentity, kScale, kAffine } fType; enumerator
/third_party/skia/src/core/
DSkRRect.cpp788 static constexpr SkScalar kScale = (1.f - SK_ScalarRoot2Over2) + 1e-5f; in InnerBounds() local
789 SkScalar innerArea = (innerBounds.width() - kScale * dw) * (innerBounds.height() - kScale * dh); in InnerBounds()
801 innerBounds.fLeft += kScale * leftShift; in InnerBounds()
802 innerBounds.fRight -= kScale * rightShift; in InnerBounds()
803 innerBounds.fTop += kScale * topShift; in InnerBounds()
804 innerBounds.fBottom -= kScale * bottomShift; in InnerBounds()
/third_party/skia/modules/particles/include/
DSkParticleData.h25 kScale, enumerator
/third_party/flutter/skia/modules/particles/include/
DSkParticleData.h26 kScale, enumerator
/third_party/flutter/skia/src/opts/
DSkRasterPipeline_opts.h2482 template <int kScale>
2484 *x = sk_unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bilinear_x()
2488 if (kScale == -1) { scalex = 1.0f - fx; } in bilinear_x()
2489 if (kScale == +1) { scalex = fx; } in bilinear_x()
2492 template <int kScale>
2494 *y = sk_unaligned_load<F>(ctx->y) + (kScale * 0.5f); in bilinear_y()
2498 if (kScale == -1) { scaley = 1.0f - fy; } in bilinear_y()
2499 if (kScale == +1) { scaley = fy; } in bilinear_y()
2524 template <int kScale>
2526 *x = sk_unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bicubic_x()
[all …]
/third_party/skia/src/opts/
DSkRasterPipeline_opts.h2609 template <int kScale>
2611 *x = sk_unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bilinear_x()
2615 if (kScale == -1) { scalex = 1.0f - fx; } in bilinear_x()
2616 if (kScale == +1) { scalex = fx; } in bilinear_x()
2619 template <int kScale>
2621 *y = sk_unaligned_load<F>(ctx->y) + (kScale * 0.5f); in bilinear_y()
2625 if (kScale == -1) { scaley = 1.0f - fy; } in bilinear_y()
2626 if (kScale == +1) { scaley = fy; } in bilinear_y()
2651 template <int kScale>
2653 *x = sk_unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bicubic_x()
[all …]
/third_party/flutter/skia/modules/particles/src/
DSkParticleDrawable.cpp59 float* scale = particles.fData[SkParticles::kScale].get(); in DrawAtlasArrays()
DSkParticleEffect.cpp486 fParticles.fData[SkParticles::kScale ][fCount] = 1.0f; in update()
/third_party/skia/modules/particles/src/
DSkParticleDrawable.cpp61 float* scale = particles.fData[SkParticles::kScale].get(); in DrawAtlasArrays()
DSkParticleEffect.cpp432 fParticles.fData[SkParticles::kScale ][fCount] = fState.fScale; in advanceTime()