/external/skia/include/gpu/ |
D | GrSamplerState.h | 16 class GrSamplerState { 21 static constexpr GrSamplerState ClampNearest() { return GrSamplerState(); } in ClampNearest() 22 static constexpr GrSamplerState ClampBilerp() { in ClampBilerp() 23 return GrSamplerState(WrapMode::kClamp, Filter::kBilerp); in ClampBilerp() 26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState() function 28 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter) in GrSamplerState() function 31 constexpr GrSamplerState(const WrapMode wrapModes[2], Filter filter) in GrSamplerState() function 34 constexpr GrSamplerState(const GrSamplerState&) = default; 36 GrSamplerState& operator=(const GrSamplerState& that) { 57 bool operator==(const GrSamplerState& that) const { [all …]
|
/external/skqp/include/gpu/ |
D | GrSamplerState.h | 16 class GrSamplerState { 21 static constexpr GrSamplerState ClampNearest() { return GrSamplerState(); } in ClampNearest() 22 static constexpr GrSamplerState ClampBilerp() { in ClampBilerp() 23 return GrSamplerState(WrapMode::kClamp, Filter::kBilerp); in ClampBilerp() 26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState() function 28 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter) in GrSamplerState() function 31 constexpr GrSamplerState(const WrapMode wrapModes[2], Filter filter) in GrSamplerState() function 34 constexpr GrSamplerState(const GrSamplerState&) = default; 36 GrSamplerState& operator=(const GrSamplerState& that) { 57 bool operator==(const GrSamplerState& that) const { [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrSimpleTextureEffect.fp | 12 GrSamplerState samplerParams 28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest))); 34 GrSamplerState::Filter filter) { 37 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); 42 const GrSamplerState& p) { 61 GrSamplerState::WrapMode wrapModes[2]; 66 wrapModes[0] = GrSamplerState::WrapMode::kClamp; 67 wrapModes[1] = GrSamplerState::WrapMode::kClamp; 70 GrSamplerState params(wrapModes, testData->fRandom->nextBool() 71 ? GrSamplerState::Filter::kBilerp [all …]
|
D | GrBicubicEffect.cpp | 122 const GrSamplerState::WrapMode wrapModes[2]) in GrBicubicEffect() 127 GrSamplerState(wrapModes, GrSamplerState::Filter::kNearest)) { 172 static const GrSamplerState::WrapMode kClampClamp[] = {GrSamplerState::WrapMode::kClamp, in TestCreate() 173 GrSamplerState::WrapMode::kClamp}; in TestCreate() 180 bool GrBicubicEffect::ShouldUseBicubic(const SkMatrix& matrix, GrSamplerState::Filter* filterMode) { in ShouldUseBicubic() 182 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic() 190 *filterMode = GrSamplerState::Filter::kMipMap; in ShouldUseBicubic() 197 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic() 200 *filterMode = GrSamplerState::Filter::kBilerp; in ShouldUseBicubic() 206 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
|
D | GrSimpleTextureEffect.h | 25 GrSamplerState(GrSamplerState::WrapMode::kClamp, in Make() 26 GrSamplerState::Filter::kNearest))); in Make() 32 GrSamplerState::Filter filter) { in Make() 35 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); in Make() 40 const GrSamplerState& p) { in Make() 50 GrSamplerState samplerParams) in GrSimpleTextureEffect()
|
D | GrDistanceFieldGeoProc.h | 61 const GrSamplerState& params, float lum, uint32_t flags, in Make() 68 const GrSamplerState& params, uint32_t flags, in Make() 88 void addNewProxies(const sk_sp<GrTextureProxy> proxies[kMaxTextures], const GrSamplerState& p); 96 const GrSamplerState& params, 130 const GrSamplerState& params, uint32_t flags) { in Make() 145 void addNewProxies(const sk_sp<GrTextureProxy> proxies[kMaxTextures], const GrSamplerState& p); 154 const GrSamplerState&, uint32_t flags); 194 const GrSamplerState& params, in Make() 213 void addNewProxies(const sk_sp<GrTextureProxy> proxies[kMaxTextures], const GrSamplerState& p); 221 const GrSamplerState& params, DistanceAdjust wa, uint32_t flags,
|
D | GrSimpleTextureEffect.cpp | 70 GrSamplerState::WrapMode wrapModes[2]; in TestCreate() 75 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in TestCreate() 76 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in TestCreate() 79 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate() 80 ? GrSamplerState::Filter::kBilerp in TestCreate() 81 : GrSamplerState::Filter::kNearest); in TestCreate()
|
/external/skia/src/gpu/effects/ |
D | GrSimpleTextureEffect.fp | 12 GrSamplerState samplerParams 28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest))); 34 GrSamplerState::Filter filter) { 37 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); 42 const GrSamplerState& p) { 61 GrSamplerState::WrapMode wrapModes[2]; 66 wrapModes[0] = GrSamplerState::WrapMode::kClamp; 67 wrapModes[1] = GrSamplerState::WrapMode::kClamp; 70 GrSamplerState params(wrapModes, testData->fRandom->nextBool() 71 ? GrSamplerState::Filter::kBilerp [all …]
|
D | GrBicubicEffect.cpp | 122 const GrSamplerState::WrapMode wrapModes[2]) in GrBicubicEffect() 127 GrSamplerState(wrapModes, GrSamplerState::Filter::kNearest)) { 172 static const GrSamplerState::WrapMode kClampClamp[] = {GrSamplerState::WrapMode::kClamp, in TestCreate() 173 GrSamplerState::WrapMode::kClamp}; in TestCreate() 180 bool GrBicubicEffect::ShouldUseBicubic(const SkMatrix& matrix, GrSamplerState::Filter* filterMode) { in ShouldUseBicubic() 182 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic() 190 *filterMode = GrSamplerState::Filter::kMipMap; in ShouldUseBicubic() 197 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic() 200 *filterMode = GrSamplerState::Filter::kBilerp; in ShouldUseBicubic() 206 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
|
D | GrSimpleTextureEffect.h | 25 GrSamplerState(GrSamplerState::WrapMode::kClamp, in Make() 26 GrSamplerState::Filter::kNearest))); in Make() 32 GrSamplerState::Filter filter) { in Make() 35 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); in Make() 40 const GrSamplerState& p) { in Make() 50 GrSamplerState samplerParams) in GrSimpleTextureEffect()
|
D | GrDistanceFieldGeoProc.h | 60 const GrSamplerState& params, float lum, uint32_t flags, in Make() 68 const GrSamplerState& params, uint32_t flags, 88 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 97 const GrSamplerState& params, 133 const GrSamplerState& params, uint32_t flags) { in Make() 148 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 160 const GrSamplerState&, uint32_t flags); 199 const GrSamplerState& params, in Make() 218 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 226 const GrSamplerState& params, DistanceAdjust wa, uint32_t flags,
|
D | GrSimpleTextureEffect.cpp | 70 GrSamplerState::WrapMode wrapModes[2]; in TestCreate() 75 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in TestCreate() 76 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in TestCreate() 79 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate() 80 ? GrSamplerState::Filter::kBilerp in TestCreate() 81 : GrSamplerState::Filter::kNearest); in TestCreate()
|
/external/skia/src/gpu/ |
D | GrTextureProducer.cpp | 44 if (copyParams.fFilter != GrSamplerState::Filter::kNearest) { in CopyOnGpu() 54 SkASSERT(copyParams.fFilter != GrSamplerState::Filter::kMipMap); in CopyOnGpu() 59 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() 86 const GrSamplerState::Filter* filterModeOrNullForBicubic, in DetermineDomainMode() 112 case GrSamplerState::Filter::kNearest: in DetermineDomainMode() 119 case GrSamplerState::Filter::kBilerp: in DetermineDomainMode() 122 case GrSamplerState::Filter::kMipMap: in DetermineDomainMode() 189 const GrSamplerState::Filter* filterOrNullForBicubic) { in CreateFragmentProcessorForDomainAndFilter() 197 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter() 204 static const GrSamplerState::WrapMode kClampClamp[] = { in CreateFragmentProcessorForDomainAndFilter() [all …]
|
D | GrTextureMaker.cpp | 16 sk_sp<GrTextureProxy> GrTextureMaker::onRefTextureProxyForParams(const GrSamplerState& params, in onRefTextureProxyForParams() 21 bool willBeMipped = params.filter() == GrSamplerState::Filter::kMipMap; in onRefTextureProxyForParams() 100 const GrSamplerState::Filter* filterOrNullForBicubic, in createFragmentProcessor() 102 const GrSamplerState::Filter* fmForDetermineDomain = filterOrNullForBicubic; in createFragmentProcessor() 103 if (filterOrNullForBicubic && GrSamplerState::Filter::kMipMap == *filterOrNullForBicubic && in createFragmentProcessor() 110 static const GrSamplerState::Filter kBilerp = GrSamplerState::Filter::kBilerp; in createFragmentProcessor() 114 GrSamplerState samplerState; in createFragmentProcessor() 116 samplerState = GrSamplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in createFragmentProcessor() 119 samplerState = GrSamplerState::ClampNearest(); in createFragmentProcessor()
|
D | GrTextureProducer.h | 34 GrSamplerState::Filter fFilter; 69 const GrSamplerState::Filter* filterOrNullForBicubic, 87 sk_sp<GrTextureProxy> refTextureProxyForParams(const GrSamplerState&, 92 sk_sp<GrTextureProxy> refTextureProxyForParams(GrSamplerState::Filter filter, in refTextureProxyForParams() 97 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter), dstColorSpace, in refTextureProxyForParams() 163 const GrSamplerState::Filter* filterModeOrNullForBicubic, 171 const GrSamplerState::Filter* filterOrNullForBicubic); 174 virtual sk_sp<GrTextureProxy> onRefTextureProxyForParams(const GrSamplerState&,
|
D | GrProcessor.h | 265 TextureSampler(sk_sp<GrTextureProxy>, const GrSamplerState&); 268 GrSamplerState::Filter = GrSamplerState::Filter::kNearest, 269 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp, 274 void reset(sk_sp<GrTextureProxy>, const GrSamplerState&, 277 GrSamplerState::Filter = GrSamplerState::Filter::kNearest, 278 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp, 301 const GrSamplerState& samplerState() const { return fSamplerState; } in samplerState() 311 GrSamplerState fSamplerState;
|
D | GrProcessor.cpp | 203 const GrSamplerState& samplerState) { in TextureSampler() 208 GrSamplerState::Filter filterMode, in TextureSampler() 209 GrSamplerState::WrapMode wrapXAndY, in TextureSampler() 215 const GrSamplerState& samplerState, in reset() 224 GrSamplerState::Filter filterMode, in reset() 225 GrSamplerState::WrapMode wrapXAndY, in reset() 229 fSamplerState = GrSamplerState(wrapXAndY, filterMode); in reset()
|
D | GrTextureAdjuster.cpp | 69 const GrSamplerState& params, in onRefTextureProxyForParams() 94 bool willBeMipped = GrSamplerState::Filter::kMipMap == params.filter(); in onRefTextureProxyForParams() 103 const GrSamplerState::Filter* filterOrNullForBicubic, in createFragmentProcessor() 108 GrSamplerState samplerState; in createFragmentProcessor() 134 GrSamplerState::Filter::kMipMap == *filterOrNullForBicubic); in createFragmentProcessor() 135 static const GrSamplerState::Filter kBilerp = GrSamplerState::Filter::kBilerp; in createFragmentProcessor()
|
/external/skqp/src/gpu/ |
D | GrTextureProducer.cpp | 40 if (copyParams.fFilter != GrSamplerState::Filter::kNearest) { in CopyOnGpu() 50 SkASSERT(copyParams.fFilter != GrSamplerState::Filter::kMipMap); in CopyOnGpu() 55 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() 82 const GrSamplerState::Filter* filterModeOrNullForBicubic, in DetermineDomainMode() 108 case GrSamplerState::Filter::kNearest: in DetermineDomainMode() 115 case GrSamplerState::Filter::kBilerp: in DetermineDomainMode() 118 case GrSamplerState::Filter::kMipMap: in DetermineDomainMode() 185 const GrSamplerState::Filter* filterOrNullForBicubic) { in CreateFragmentProcessorForDomainAndFilter() 193 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter() 200 static const GrSamplerState::WrapMode kClampClamp[] = { in CreateFragmentProcessorForDomainAndFilter() [all …]
|
D | GrTextureMaker.cpp | 16 sk_sp<GrTextureProxy> GrTextureMaker::refTextureProxyForParams(const GrSamplerState& params, in refTextureProxyForParams() 21 bool willBeMipped = params.filter() == GrSamplerState::Filter::kMipMap; in refTextureProxyForParams() 100 const GrSamplerState::Filter* filterOrNullForBicubic, in createFragmentProcessor() 102 const GrSamplerState::Filter* fmForDetermineDomain = filterOrNullForBicubic; in createFragmentProcessor() 103 if (filterOrNullForBicubic && GrSamplerState::Filter::kMipMap == *filterOrNullForBicubic && in createFragmentProcessor() 110 static const GrSamplerState::Filter kBilerp = GrSamplerState::Filter::kBilerp; in createFragmentProcessor() 114 GrSamplerState samplerState; in createFragmentProcessor() 116 samplerState = GrSamplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in createFragmentProcessor() 119 samplerState = GrSamplerState::ClampNearest(); in createFragmentProcessor()
|
D | GrProcessor.h | 291 TextureSampler(sk_sp<GrTextureProxy>, const GrSamplerState&); 294 GrSamplerState::Filter = GrSamplerState::Filter::kNearest, 295 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp, 300 void reset(sk_sp<GrTextureProxy>, const GrSamplerState&, 303 GrSamplerState::Filter = GrSamplerState::Filter::kNearest, 304 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp, 327 const GrSamplerState& samplerState() const { return fSamplerState; } in samplerState() 337 GrSamplerState fSamplerState;
|
D | GrTextureAdjuster.cpp | 68 sk_sp<GrTextureProxy> GrTextureAdjuster::refTextureProxySafeForParams(const GrSamplerState& params, in refTextureProxySafeForParams() 83 bool willBeMipped = GrSamplerState::Filter::kMipMap == params.filter(); in refTextureProxySafeForParams() 92 const GrSamplerState::Filter* filterOrNullForBicubic, in createFragmentProcessor() 97 GrSamplerState samplerState; in createFragmentProcessor() 123 GrSamplerState::Filter::kMipMap == *filterOrNullForBicubic); in createFragmentProcessor() 124 static const GrSamplerState::Filter kBilerp = GrSamplerState::Filter::kBilerp; in createFragmentProcessor()
|
D | GrProcessor.cpp | 203 const GrSamplerState& samplerState) { in TextureSampler() 208 GrSamplerState::Filter filterMode, in TextureSampler() 209 GrSamplerState::WrapMode wrapXAndY, in TextureSampler() 215 const GrSamplerState& samplerState, in reset() 224 GrSamplerState::Filter filterMode, in reset() 225 GrSamplerState::WrapMode wrapXAndY, in reset() 229 fSamplerState = GrSamplerState(wrapXAndY, filterMode); in reset()
|
/external/skqp/src/gpu/vk/ |
D | GrVkSampler.cpp | 13 GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_vk_sampler_address() 15 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_vk_sampler_address() 17 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_vk_sampler_address() 19 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_vk_sampler_address() 26 GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() 61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0; in Create() 80 uint16_t GrVkSampler::GenerateKey(const GrSamplerState& samplerState, uint32_t maxMipLevel) { in GenerateKey()
|
/external/skia/src/gpu/vk/ |
D | GrVkSampler.cpp | 13 GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_vk_sampler_address() 15 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_vk_sampler_address() 17 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_vk_sampler_address() 19 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_vk_sampler_address() 26 GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() 61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0; in Create() 80 uint16_t GrVkSampler::GenerateKey(const GrSamplerState& samplerState, uint32_t maxMipLevel) { in GenerateKey()
|