/external/skia/src/shaders/ |
D | SkLights.h | 117 Builder() : fLights(new SkLights) {} in Builder() 120 if (fLights) { in add() 121 fLights->fLights.push_back(light); in add() 126 if (fLights) { in add() 127 fLights->fLights.push_back(std::move(light)); in add() 132 if (fLights) { in setAmbientLightColor() 133 fLights->fAmbientLightColor = color; in setAmbientLightColor() 138 return std::move(fLights); in finish() 142 sk_sp<SkLights> fLights; 149 int numLights() const { return fLights.count(); } in numLights() [all …]
|
D | SkLightingShader.cpp | 54 , fLights(std::move(lights)) {} in SkLightingShaderImpl() 95 sk_sp<SkLights> fLights; member in SkLightingShaderImpl 291 LightingFP::Make(std::move(normalFP), fLights) in asFragmentProcessor() 303 return GrFragmentProcessor::PremulInput(LightingFP::Make(std::move(normalFP), fLights)); in asFragmentProcessor() 385 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan() 386 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan() 387 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 390 for (int l = 0; l < lightShader.fLights->numLights(); ++l) { in shadeSpan() 391 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan() 444 fLights->flatten(buf); in flatten() [all …]
|
D | SkLights.cpp | 66 Light light(fLights[i].type(), xform_color(fLights[i].color(), xformer), in makeColorSpace() 67 fLights[i].fDirOrPos, fLights[i].fIntensity); in makeColorSpace()
|
/external/skqp/src/shaders/ |
D | SkLights.h | 117 Builder() : fLights(new SkLights) {} in Builder() 120 if (fLights) { in add() 121 fLights->fLights.push_back(light); in add() 126 if (fLights) { in add() 127 fLights->fLights.push_back(std::move(light)); in add() 132 if (fLights) { in setAmbientLightColor() 133 fLights->fAmbientLightColor = color; in setAmbientLightColor() 138 return std::move(fLights); in finish() 142 sk_sp<SkLights> fLights; 149 int numLights() const { return fLights.count(); } in numLights() [all …]
|
D | SkLightingShader.cpp | 54 , fLights(std::move(lights)) {} in SkLightingShaderImpl() 95 sk_sp<SkLights> fLights; member in SkLightingShaderImpl 293 LightingFP::Make(std::move(normalFP), fLights) in asFragmentProcessor() 305 return GrFragmentProcessor::PremulInput(LightingFP::Make(std::move(normalFP), fLights)); in asFragmentProcessor() 387 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan() 388 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan() 389 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 392 for (int l = 0; l < lightShader.fLights->numLights(); ++l) { in shadeSpan() 393 const SkLights::Light& light = lightShader.fLights->light(l); in shadeSpan() 446 fLights->flatten(buf); in flatten() [all …]
|
D | SkLights.cpp | 66 Light light(fLights[i].type(), xform_color(fLights[i].color(), xformer), in makeColorSpace() 67 fLights[i].fDirOrPos, fLights[i].fIntensity); in makeColorSpace()
|
/external/skqp/gm/ |
D | lightingshader2.cpp | 55 fLights = builder.finish(); in onOnceBeforeDraw() 165 useTranslucentPaint, useTranslucentShader, fLights); in onDraw() 209 this->drawRect(canvas, 0.6f, 0.6f, 45.0f, true, true, true, true, fLights); in onDraw() 222 this->drawRect(canvas, 0.6f, 0.4f, 30.0f, true, true, true, true, fLights); in onDraw() 267 sk_sp<SkLights> fLights; member in skiagm::LightingShader2GM
|
D | lightingshader.cpp | 78 fLights = builder.finish(); in onOnceBeforeDraw() 109 fLights)); in drawRect() 152 sk_sp<SkLights> fLights; member in skiagm::LightingShaderGM
|
/external/skia/gm/ |
D | lightingshader2.cpp | 55 fLights = builder.finish(); in onOnceBeforeDraw() 165 useTranslucentPaint, useTranslucentShader, fLights); in onDraw() 209 this->drawRect(canvas, 0.6f, 0.6f, 45.0f, true, true, true, true, fLights); in onDraw() 222 this->drawRect(canvas, 0.6f, 0.4f, 30.0f, true, true, true, true, fLights); in onDraw() 267 sk_sp<SkLights> fLights; member in skiagm::LightingShader2GM
|
D | lightingshader.cpp | 78 fLights = builder.finish(); in onOnceBeforeDraw() 109 fLights)); in drawRect() 152 sk_sp<SkLights> fLights; member in skiagm::LightingShaderGM
|
/external/skia/samplecode/ |
D | SampleLitAtlas.cpp | 117 SkXfermode::kModulate_Mode, &cull, &paint, fLights); in onDraw() 141 std::move(normalSource), fLights)); in onDraw() 190 fLights = builder.finish(); in updateLights() 445 sk_sp<SkLights> fLights; member in DrawLitAtlasDrawable
|
/external/skqp/samplecode/ |
D | SampleLitAtlas.cpp | 117 SkXfermode::kModulate_Mode, &cull, &paint, fLights); in onDraw() 141 std::move(normalSource), fLights)); in onDraw() 190 fLights = builder.finish(); in updateLights() 445 sk_sp<SkLights> fLights; member in DrawLitAtlasDrawable
|
/external/skia/tests/ |
D | SerializationTest.cpp | 589 sk_sp<SkLights> fLights = builder.finish(); in DEF_TEST() local 618 fLights); in DEF_TEST() 623 fLights); in DEF_TEST() 628 fLights); in DEF_TEST() 633 fLights); in DEF_TEST()
|
/external/skqp/tests/ |
D | SerializationTest.cpp | 589 sk_sp<SkLights> fLights = builder.finish(); in DEF_TEST() local 618 fLights); in DEF_TEST() 623 fLights); in DEF_TEST() 628 fLights); in DEF_TEST() 633 fLights); in DEF_TEST()
|