Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/shaders/
DSkLights.h116 Builder() : fLights(new SkLights) {} in Builder()
119 if (fLights) { in add()
120 fLights->fLights.push_back(light); in add()
125 if (fLights) { in add()
126 fLights->fLights.push_back(std::move(light)); in add()
131 if (fLights) { in setAmbientLightColor()
132 fLights->fAmbientLightColor = color; in setAmbientLightColor()
137 return std::move(fLights); in finish()
141 sk_sp<SkLights> fLights;
148 int numLights() const { return fLights.count(); } in numLights()
[all …]
DSkLightingShader.cpp53 , fLights(std::move(lights)) {} in SkLightingShaderImpl()
93 sk_sp<SkLights> fLights; member in SkLightingShaderImpl
289 LightingFP::Make(std::move(normalFP), fLights) in asFragmentProcessor()
301 return GrFragmentProcessor::PremulInput(LightingFP::Make(std::move(normalFP), fLights)); in asFragmentProcessor()
383 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan()
384 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan()
385 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan()
388 for (int l = 0; l < lightShader.fLights->numLights(); ++l) { in shadeSpan()
389 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan()
442 fLights->flatten(buf); in flatten()
/third_party/flutter/skia/gm/
Dlightingshader2.cpp71 fLights = builder.finish(); in onOnceBeforeDraw()
175 useTranslucentPaint, useTranslucentShader, fLights); in onDraw()
219 this->drawRect(canvas, 0.6f, 0.6f, 45.0f, true, true, true, true, fLights); in onDraw()
232 this->drawRect(canvas, 0.6f, 0.4f, 30.0f, true, true, true, true, fLights); in onDraw()
277 sk_sp<SkLights> fLights; member in skiagm::LightingShader2GM
Dlightingshader.cpp91 fLights = builder.finish(); in onOnceBeforeDraw()
117 fLights)); in drawRect()
160 sk_sp<SkLights> fLights; member in skiagm::LightingShaderGM
/third_party/flutter/skia/samplecode/
DSampleLitAtlas.cpp117 SkXfermode::kModulate_Mode, &cull, &paint, fLights); in onDraw()
139 std::move(normalSource), fLights)); in onDraw()
188 fLights = builder.finish(); in updateLights()
439 sk_sp<SkLights> fLights; member in DrawLitAtlasDrawable
/third_party/flutter/skia/tests/
DSerializationTest.cpp604 sk_sp<SkLights> fLights = builder.finish(); in DEF_TEST() local
628 fLights); in DEF_TEST()
633 fLights); in DEF_TEST()
638 fLights); in DEF_TEST()
643 fLights); in DEF_TEST()