/external/skia/include/core/ |
D | SkLights.h | 142 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 …]
|
D | SkCanvas.h | 1381 sk_sp<SkLights> fLights; variable
|
/external/skia/src/core/ |
D | SkLightingShader.cpp | 51 , 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()
|
D | SkShadowShader.cpp | 31 , 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()
|
D | SkCanvas.cpp | 650 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/ |
D | SampleShadowing.cpp | 140 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
|
D | SampleLitAtlas.cpp | 116 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
|
D | SampleBevel.cpp | 720 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/ |
D | shadowmaps.cpp | 79 fLights = builder.finish(); in onOnceBeforeDraw() 103 canvas->setLights(fLights); in onDraw() 108 sk_sp<SkLights> fLights; member in skiagm::ShadowMapsGM
|
D | lightingshader2.cpp | 52 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
|
D | lightingshader.cpp | 58 fLights = builder.finish(); in LightingShaderGM() 109 fLights)); in drawRect() 174 sk_sp<SkLights> fLights; member in skiagm::LightingShaderGM
|
D | lightingshaderbevel.cpp | 43 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/ |
D | SkShadowPaintFilterCanvas.cpp | 84 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/ |
D | SerializationTest.cpp | 585 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()
|