Home
last modified time | relevance | path

Searched refs:GrSwizzle (Results 1 – 15 of 15) sorted by relevance

/external/skia/src/gpu/
DGrSwizzle.h17 class GrSwizzle {
19 GrSwizzle() { *this = RGBA(); } in GrSwizzle() function
21 GrSwizzle(const GrSwizzle& that) { *this = that; } in GrSwizzle() function
23 GrSwizzle& operator=(const GrSwizzle& that) {
24 memcpy(this, &that, sizeof(GrSwizzle));
38 bool operator==(const GrSwizzle& that) const { return this->asUInt() == that.asUInt(); }
40 bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
67 static const GrSwizzle& RGBA() { in RGBA()
68 static GrSwizzle gRGBA("rgba"); in RGBA()
72 static const GrSwizzle& AAAA() { in AAAA()
[all …]
DGrGpu.h166 GrSwizzle fSwizzle;
215 GrSwizzle fSwizzle;
DGrContext.cpp612 const GrSwizzle& swizzle, in createPMToUPMEffect()
627 const GrSwizzle& swizzle, in createUPMToPMEffect()
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.cpp21 const GrSwizzle& swizzle = cce.swizzle(); in emitCode()
39 SkASSERT(GrSwizzle::RGBA() != swizzle); in emitCode()
98 const GrSwizzle& swizzle, in GrConfigConversionEffect()
111 SkASSERT(swizzle != GrSwizzle::RGBA() || kNone_PMConversion != pmConversion); in GrConfigConversionEffect()
130 GrSwizzle swizzle; in TestCreate()
132 swizzle = GrSwizzle::CreateRandom(d->fRandom); in TestCreate()
133 } while (pmConv == kNone_PMConversion && swizzle == GrSwizzle::RGBA()); in TestCreate()
217 dataTex, GrSwizzle::RGBA(), *pmToUPMRule, SkMatrix::I())); in TestForPreservingPMConversions()
219 readTex, GrSwizzle::RGBA(), *upmToPMRule, SkMatrix::I())); in TestForPreservingPMConversions()
221 tempTex, GrSwizzle::RGBA(), *pmToUPMRule, SkMatrix::I())); in TestForPreservingPMConversions()
[all …]
DGrConfigConversionEffect.h36 static const GrFragmentProcessor* Create(GrTexture*, const GrSwizzle&, PMConversion,
41 const GrSwizzle& swizzle() const { return fSwizzle; } in swizzle()
55 const GrSwizzle&,
67 GrSwizzle fSwizzle;
/external/skia/src/gpu/glsl/
DGrGLSLCaps.h131 const GrSwizzle& configTextureSwizzle(GrPixelConfig config) const { in configTextureSwizzle()
136 const GrSwizzle& configOutputSwizzle(GrPixelConfig config) const { in configOutputSwizzle()
181 GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt];
182 GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt];
DGrGLSLShaderBuilder.cpp93 const GrSwizzle& configSwizzle = glslCaps->configTextureSwizzle(sampler.config()); in appendTextureLookup()
95 if (configSwizzle != GrSwizzle::RGBA()) { in appendTextureLookup()
DGrGLSLProgramBuilder.cpp203 GrSwizzle swizzle; in emitFSOutputSwizzle()
205 if (swizzle != GrSwizzle::RGBA()) { in emitFSOutputSwizzle()
/external/skia/src/gpu/gl/
DGrGLCaps.cpp1314 fConfigTable[kUnknown_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1332 fConfigTable[kRGBA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1369 fConfigTable[kBGRA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1404 fConfigTable[kSRGBA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1424 fConfigTable[kRGB_565_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1440 fConfigTable[kRGBA_4444_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1447 fConfigTable[kAlpha_8_GrPixelConfig].fSwizzle = GrSwizzle::RRRR(); in initConfigTable()
1453 fConfigTable[kAlpha_8_GrPixelConfig].fSwizzle = GrSwizzle::AAAA(); in initConfigTable()
1510 fConfigTable[kRGBA_float_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1517 fConfigTable[kAlpha_half_GrPixelConfig].fSwizzle = GrSwizzle::RRRR(); in initConfigTable()
[all …]
DGrGLCaps.h137 const GrSwizzle& configSwizzle(GrPixelConfig config) const { in configSwizzle()
488 GrSwizzle fSwizzle;
DGrGLGpu.cpp746 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetWritePixelsInfo()
764 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
770 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
778 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
1809 const GrSwizzle& swizzle = this->glCaps().glslCaps()->configOutputSwizzle( in flushGLState()
2246 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetReadPixelsInfo()
2275 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2285 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2296 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2673 this->flushBlend(blendInfo, GrSwizzle()); in stampRectUsingProgram()
[all …]
DGrGLGpu.h29 class GrSwizzle; variable
236 void flushBlend(const GrXferProcessor::BlendInfo& blendInfo, const GrSwizzle&);
/external/skia/include/gpu/
DGrContext.h46 class GrSwizzle; variable
428 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, const GrSwizzle&,
430 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, const GrSwizzle&,
/external/skia/src/gpu/vk/
DGrVkCaps.cpp117 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); in initGLSLCaps()
118 glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); in initGLSLCaps()
120 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA(); in initGLSLCaps()
/external/skia/gyp/
Dgpu.gypi181 '<(skia_src_path)/gpu/GrSwizzle.h',