Home
last modified time | relevance | path

Searched refs:fLights (Results 1 – 14 of 14) sorted by relevance

/external/skia/include/core/
DSkLights.h142 Builder() : fLights(new SkLights) {} in Builder()
145 if (fLights) { in add()
146 fLights->fLights.push_back(light); in add()
151 if (fLights) { in add()
152 fLights->fLights.push_back(std::move(light)); in add()
157 if (fLights) { in setAmbientLightColor()
158 fLights->fAmbientLightColor = color; in setAmbientLightColor()
163 return std::move(fLights); in finish()
167 sk_sp<SkLights> fLights;
171 return fLights.count(); in numLights()
[all …]
DSkCanvas.h1381 sk_sp<SkLights> fLights; variable
/external/skia/src/core/
DSkLightingShader.cpp51 , fLights(std::move(lights)) {} in SkLightingShaderImpl()
90 sk_sp<SkLights> fLights; member in SkLightingShaderImpl
271 sk_make_sp<LightingFP>(std::move(normalFP), fLights) in asFragmentProcessor()
284 fLights)); in asFragmentProcessor()
366 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan()
367 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan()
368 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan()
371 for (int l = 0; l < lightShader.fLights->numLights(); ++l) { in shadeSpan()
372 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan()
429 fLights->flatten(buf); in flatten()
DSkShadowShader.cpp31 , fLights(std::move(lights)) in SkShadowShaderImpl()
82 sk_sp<SkLights> fLights; member in SkShadowShaderImpl
652 std::move(fLights), in asFragmentProcessor()
688 fNonAmbLightCnt = lightShader.fLights->numLights(); in ShadowShaderContext()
692 if (lightShader.fLights->light(i).type() == SkLights::Light::kDirectional_LightType) { in ShadowShaderContext()
693 lightShader.fLights->light(i).getShadowMap()-> in ShadowShaderContext()
752 SkColor3f totalLight = lightShader.fLights->ambientLightColor(); in shadeSpan()
755 for (int l = 0; l < lightShader.fLights->numLights(); ++l) { in shadeSpan()
756 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan()
879 fLights->flatten(buf); in flatten()
DSkCanvas.cpp650 fLights = nullptr; in init()
1457 this->fLights = lights; in setLights()
1461 return this->fLights; in getLights()
3015 for (int i = 0; i < fLights->numLights(); ++i) { in onDrawShadowedPicture()
3021 if (fLights->light(i).getShadowMap() != nullptr) { in onDrawShadowedPicture()
3025 if (fLights->light(i).isRadial()) { in onDrawShadowedPicture()
3041 builder.add(fLights->light(i)); in onDrawShadowedPicture()
3066 fLights->light(i), 255, in onDrawShadowedPicture()
3085 builder.add(fLights->light(i)); in onDrawShadowedPicture()
3094 fLights->light(i).setShadowMap(std::move(depthMap)); in onDrawShadowedPicture()
[all …]
/external/skia/samplecode/
DSampleShadowing.cpp140 for (int i = 0; i < fLights->numLights(); i++) { in onDrawContent()
141 fLights->light(i).setShadowMap(nullptr); in onDrawContent()
149 canvas->setLights(fLights); in onDrawContent()
170 fLights = builder.finish(); in updateLights()
292 sk_sp<SkLights> fLights; member in ShadowingView
DSampleLitAtlas.cpp116 SkXfermode::kModulate_Mode, &cull, &paint, fLights); in onDraw()
140 std::move(normalSource), fLights)); in onDraw()
189 fLights = builder.finish(); in updateLights()
447 sk_sp<SkLights> fLights; member in DrawLitAtlasDrawable
DSampleBevel.cpp720 paint.setShader(SkLightingShader::Make(nullptr, fNormalSource, fLights)); in drawShape()
753 fLights = builder.finish(); in onDrawContent()
806 sk_sp<SkLights> fLights; member in BevelView
/external/skia/gm/
Dshadowmaps.cpp79 fLights = builder.finish(); in onOnceBeforeDraw()
103 canvas->setLights(fLights); in onDraw()
108 sk_sp<SkLights> fLights; member in skiagm::ShadowMapsGM
Dlightingshader2.cpp52 fLights = builder.finish(); in onOnceBeforeDraw()
167 useTranslucentPaint, useTranslucentShader, fLights); in onDraw()
211 this->drawRect(canvas, 0.6f, 0.6f, 45.0f, true, true, true, true, fLights); in onDraw()
224 this->drawRect(canvas, 0.6f, 0.4f, 30.0f, true, true, true, true, fLights); in onDraw()
265 sk_sp<SkLights> fLights; member in skiagm::LightingShader2GM
Dlightingshader.cpp58 fLights = builder.finish(); in LightingShaderGM()
109 fLights)); in drawRect()
174 sk_sp<SkLights> fLights; member in skiagm::LightingShaderGM
Dlightingshaderbevel.cpp43 fLights = builder.finish(); in onOnceBeforeDraw()
118 paint.setShader(SkLightingShader::Make(fDiffuse, std::move(normalSource), fLights)); in drawShape()
260 sk_sp<SkLights> fLights; member in skiagm::LightingShaderBevelGM
/external/skia/src/utils/
DSkShadowPaintFilterCanvas.cpp84 if (this->fLights->light(0).type() == SkLights::Light::kDirectional_LightType) { in updateMatrix()
85 const SkVector3& lightDir = this->fLights->light(0).dir(); in updateMatrix()
90 } else if (this->fLights->light(0).type() == SkLights::Light::kPoint_LightType) { in updateMatrix()
93 SkPoint3 lightPos = this->fLights->light(0).pos(); in updateMatrix()
/external/skia/tests/
DSerializationTest.cpp585 sk_sp<SkLights> fLights = builder.finish(); in DEF_TEST() local
614 fLights); in DEF_TEST()
619 fLights); in DEF_TEST()
624 fLights); in DEF_TEST()
629 fLights); in DEF_TEST()