Home
last modified time | relevance | path

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

123

/third_party/skia/src/core/
DSkMipmapAccessor.cpp30 SkMipmapMode requestedMode) { in SkMipmapAccessor()
43 if (requestedMode != SkMipmapMode::kNone) { in SkMipmapAccessor()
46 fResolvedMode = SkMipmapMode::kNone; in SkMipmapAccessor()
50 fResolvedMode = SkMipmapMode::kNone; in SkMipmapAccessor()
69 if (levelNum > 0 || (fResolvedMode == SkMipmapMode::kLinear && lowerWeight > 0)) { in SkMipmapAccessor()
73 fResolvedMode = SkMipmapMode::kNone; in SkMipmapAccessor()
77 SkASSERT(fResolvedMode != SkMipmapMode::kNone); in SkMipmapAccessor()
83 fResolvedMode = SkMipmapMode::kNone; in SkMipmapAccessor()
87 if (fResolvedMode == SkMipmapMode::kLinear) { in SkMipmapAccessor()
93 fResolvedMode = SkMipmapMode::kNearest; in SkMipmapAccessor()
[all …]
DSkMipmapAccessor.h22 static SkMipmapAccessor* Make(SkArenaAlloc*, const SkImage*, const SkMatrix& inv, SkMipmapMode);
43 SkMipmapMode fResolvedMode;
51 SkMipmapAccessor(const SkImage_Base*, const SkMatrix& inv, SkMipmapMode requestedMode);
/third_party/skia/bench/
DFilteringBench.cpp17 FilteringBench(SkFilterMode fm, SkMipmapMode mm) : fSampling(fm, mm) { in FilteringBench()
57 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kLinear); )
58 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kNearest); )
59 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kNone); )
61 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kLinear); )
62 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kNearest); )
63 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kNone); )
DGrMipmapBench.cpp51 SkMipmapMode::kLinear); in onDraw()
/third_party/skia/include/core/
DSkSamplingOptions.h21 enum class SkMipmapMode { enum
58 const SkMipmapMode mipmap = SkMipmapMode::kNone;
68 SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm) in SkSamplingOptions()
76 , mipmap(SkMipmapMode::kNone) {} in SkSamplingOptions()
/third_party/skia/tests/
DSamplingTest.cpp40 for (auto m : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in DEF_TEST()
DGrTextureMipMapInvalidationTest.cpp57 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kLinear); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 SkMipmapMode::kLinear)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/gm/
Dshowmiplevels.cpp59 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in onDraw()
Dyuv420_odd_dim.cpp123 for (SkMipmapMode mm : {SkMipmapMode::kNone, SkMipmapMode::kLinear}) {
Dmipmap.cpp50 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
82 SkMipmapMode::kLinear); in show_mips()
131 SkMipmapMode::kLinear); in show_mips_only()
Dimage_shader.cpp180 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) {
Drectangletexture.cpp155 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
207 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
212 if (!sampling.useCubic && sampling.mipmap != SkMipmapMode::kNone) { in onDraw()
Dskbug_8664.cpp29 SkMipmapMode::kLinear);
Dcrosscontextimage.cpp62 SkMipmapMode::kLinear));
Dducky_yuv_blend.cpp56 SkMipmapMode::kNearest);
Dimagesource2.cpp101 SkMipmapMode::kLinear));)
/third_party/skia/modules/androidkit/src/
DUtils.cpp20 const auto mm = static_cast<SkMipmapMode>((desc >> 2) & 0x03); in SamplingOptions()
21 SkASSERT(mm <= SkMipmapMode::kLast); in SamplingOptions()
/third_party/skia/src/image/
DSkImage.cpp325 if (sampling.mipmap != SkMipmapMode::kNone && in asFragmentProcessor()
735 behavior == kNearest_SkMediumAs ? SkMipmapMode::kNearest in FromFQ()
736 : SkMipmapMode::kLinear); in FromFQ()
738 return SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in FromFQ()
742 return SkSamplingOptions(SkFilterMode::kNearest, SkMipmapMode::kNone); in FromFQ()
752 auto mipmap = buffer.read32LE<SkMipmapMode>(SkMipmapMode::kLinear); in Read()
/third_party/skia/src/shaders/
DSkImageShader.cpp192 const std::tuple<SkFilterMode,SkMipmapMode> supported[] = { in onMakeContext()
193 {SkFilterMode::kNearest, SkMipmapMode::kNone}, // legacy None in onMakeContext()
194 {SkFilterMode::kLinear, SkMipmapMode::kNone}, // legacy Low in onMakeContext()
195 {SkFilterMode::kLinear, SkMipmapMode::kNearest}, // legacy Medium in onMakeContext()
386 } else if (sampling.mipmap == SkMipmapMode::kLinear) { in doStages()
391 if (updater && (sampling.mipmap != SkMipmapMode::kNone)) { in doStages()
405 SkASSERT(!sampling.useCubic || sampling.mipmap == SkMipmapMode::kNone); in doStages()
/third_party/skia/docs/examples/
DImage_scalePixels.cpp19 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in draw()
DPixmap_scalePixels.cpp20 SkMipmapMode::kNearest)); in draw()
Dpurplestamp.cpp45 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kLinear); in draw()
/third_party/skia/modules/svg/src/
DSkSVGFeImage.cpp39 SkMipmapMode::kNearest)); in onMakeImageFilter()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp322 bool can_use_draw_texture(const SkPaint& paint, bool useCubicResampler, SkMipmapMode mm) { in can_use_draw_texture()
325 mm == SkMipmapMode::kNone); in can_use_draw_texture()
483 sampling.mipmap == SkMipmapMode::kNone && in draw_image()
677 if (sampling.useCubic || sampling.mipmap != SkMipmapMode::kNone) { in downgrade_to_filter()
783 if (sampling.mipmap != SkMipmapMode::kNone && can_disable_mipmap(ctm, srcToDst, sharpenMM)) { in drawImageQuad()
/third_party/skia/modules/skresources/src/
DSkResources.cpp100 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNearest), in getFrameData()
142 SkMipmapMode::kNearest), in generateFrame()

123