/external/skia/src/core/ |
D | SkMipmapAccessor.cpp | 30 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 …]
|
D | SkMipmapAccessor.h | 22 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/ |
D | FilteringBench.cpp | 17 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); )
|
D | GrMipmapBench.cpp | 51 SkMipmapMode::kLinear); in onDraw()
|
/external/skia/include/core/ |
D | SkSamplingOptions.h | 21 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/ |
D | SamplingTest.cpp | 40 for (auto m : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in DEF_TEST()
|
D | GrTextureMipMapInvalidationTest.cpp | 57 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kLinear); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 SkMipmapMode::kLinear)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/gm/ |
D | showmiplevels.cpp | 59 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in onDraw()
|
D | mipmap.cpp | 51 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), 83 SkMipmapMode::kLinear); in show_mips() 132 SkMipmapMode::kLinear); in show_mips_only()
|
D | image_shader.cpp | 180 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) {
|
D | skbug_8664.cpp | 30 SkMipmapMode::kLinear);
|
D | crosscontextimage.cpp | 65 SkMipmapMode::kLinear));
|
D | ducky_yuv_blend.cpp | 56 SkMipmapMode::kNearest);
|
D | imagesource2.cpp | 102 SkMipmapMode::kLinear));)
|
D | filterindiabox.cpp | 43 SkMipmapMode::kLinear)); in draw_row()
|
D | perspimages.cpp | 84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
|
D | runtimeeffectimage.cpp | 58 SkSamplingOptions mm{SkFilterMode::kLinear, SkMipmapMode::kNearest}; in onDraw()
|
/external/skia/src/shaders/ |
D | SkImageShader.cpp | 111 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/ |
D | SkImage.cpp | 337 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/ |
D | Image_scalePixels.cpp | 19 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in draw()
|
D | Pixmap_scalePixels.cpp | 20 SkMipmapMode::kNearest)); in draw()
|
D | purplestamp.cpp | 45 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kLinear); in draw()
|
/external/skia/samplecode/ |
D | SampleAnimatedText.cpp | 72 SkSamplingOptions sampling(SkFilterMode::kLinear, SkMipmapMode::kNearest); in onDrawContent()
|
/external/skia/modules/skresources/src/ |
D | SkResources.cpp | 100 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNearest), in getFrameData() 142 SkMipmapMode::kNearest), in generateFrame()
|
/external/skia/src/gpu/ |
D | SkGpuDevice_drawTexture.cpp | 320 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()
|