Home
last modified time | relevance | path

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

12

/external/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);
/external/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()
/external/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()
/external/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()
/external/skia/gm/
Dshowmiplevels.cpp59 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in onDraw()
Dmipmap.cpp51 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
83 SkMipmapMode::kLinear); in show_mips()
132 SkMipmapMode::kLinear); in show_mips_only()
Dimage_shader.cpp180 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) {
Dskbug_8664.cpp30 SkMipmapMode::kLinear);
Dcrosscontextimage.cpp65 SkMipmapMode::kLinear));
Dducky_yuv_blend.cpp56 SkMipmapMode::kNearest);
Dimagesource2.cpp102 SkMipmapMode::kLinear));)
Dfilterindiabox.cpp43 SkMipmapMode::kLinear)); in draw_row()
Dperspimages.cpp84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
Druntimeeffectimage.cpp58 SkSamplingOptions mm{SkFilterMode::kLinear, SkMipmapMode::kNearest}; in onDraw()
/external/skia/src/shaders/
DSkImageShader.cpp111 auto mipmap = buffer.read32LE<SkMipmapMode>(SkMipmapMode::kLinear); in PreSamplingCreate()
118 auto mipmap = buffer.read32LE<SkMipmapMode>(SkMipmapMode::kLinear); in PreSamplingCreate()
235 const std::tuple<SkFilterMode,SkMipmapMode> supported[] = { in onMakeContext()
236 {SkFilterMode::kNearest, SkMipmapMode::kNone}, // legacy None in onMakeContext()
237 {SkFilterMode::kLinear, SkMipmapMode::kNone}, // legacy Low in onMakeContext()
238 {SkFilterMode::kLinear, SkMipmapMode::kNearest}, // legacy Medium in onMakeContext()
465 } else if (sampling.mipmap == SkMipmapMode::kLinear) { in doStages()
470 if (updater && (sampling.mipmap != SkMipmapMode::kNone)) { in doStages()
484 SkASSERT(!sampling.useCubic || sampling.mipmap == SkMipmapMode::kNone); in doStages()
/external/skia/src/image/
DSkImage.cpp337 if (sampling.mipmap != SkMipmapMode::kNone && in asFragmentProcessor()
814 behavior == kMedium_asMipmapNearest ? SkMipmapMode::kNearest in SkSamplingOptions()
815 : SkMipmapMode::kLinear); in SkSamplingOptions()
818 *this = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in SkSamplingOptions()
821 *this = SkSamplingOptions(SkFilterMode::kNearest, SkMipmapMode::kNone); in SkSamplingOptions()
833 auto mipmap = buffer.read32LE<SkMipmapMode>(SkMipmapMode::kLinear); in Read()
/external/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()
/external/skia/samplecode/
DSampleAnimatedText.cpp72 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kNearest); in onDrawContent()
/external/skia/modules/skresources/src/
DSkResources.cpp100 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNearest), in getFrameData()
142 SkMipmapMode::kNearest), in generateFrame()
/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp320 static bool can_use_draw_texture(const SkPaint& paint, bool useCubicResampler, SkMipmapMode mm) { in can_use_draw_texture()
322 !paint.getImageFilter() && !useCubicResampler && mm == SkMipmapMode::kNone); in can_use_draw_texture()
480 sampling.mipmap == SkMipmapMode::kNone && in draw_image()
674 if (sampling.useCubic || sampling.mipmap != SkMipmapMode::kNone) { in downgrade_to_filter()
774 if (sampling.mipmap != SkMipmapMode::kNone && can_disable_mipmap(ctm, srcToDst, sharpenMM)) { in drawImageQuad()

12