Home
last modified time | relevance | path

Searched refs:SkColor3f (Results 1 – 10 of 10) sorted by relevance

/external/skqp/src/shaders/
DSkLights.h45 static Light MakeDirectional(const SkColor3f& color, const SkVector3& dir) { in MakeDirectional()
53 static Light MakePoint(const SkColor3f& color, const SkPoint3& pos, SkScalar intensity) { in MakePoint()
58 const SkColor3f& color() const { return fColor; } in color()
96 Light(LightType type, const SkColor3f& color, const SkVector3& dirOrPos, in Light()
104 SkColor3f fColor; // linear (unpremul) color. Range is 0..1 in each channel.
131 void setAmbientLightColor(const SkColor3f& color) { in setAmbientLightColor()
162 const SkColor3f& ambientLightColor() const { in ambientLightColor()
185 SkLights() : fAmbientLightColor(SkColor3f::Make(0.0f, 0.0f, 0.0f)) {} in SkLights()
190 SkColor3f fAmbientLightColor;
DSkLights.cpp16 SkColor3f ambColor; in MakeFromBuffer()
28 SkColor3f color; in MakeFromBuffer()
52 static SkColor3f xform_color(const SkColor3f& color, SkColorSpaceXformer* xformer) { in xform_color()
58 return SkColor3f::Make(SkIntToScalar(SkGetPackedR32(xformedColor)), in xform_color()
DSkLightingShader.cpp132 const SkColor3f& ambientColor() const { return fAmbientColor; } in ambientColor()
212 SkTArray<SkColor3f> lightDirs(directionalLights.count()); in onSetData()
225 const SkColor3f& ambientColor = lightingFP.ambientColor(); in onSetData()
237 SkColor3f fAmbientColor;
277 SkColor3f fAmbientColor;
336 static inline SkPMColor convert(SkColor3f color, U8CPU a) { in convert()
384 SkColor3f accum = SkColor3f::Make(0.0f, 0.0f, 0.0f); in shadeSpan()
/external/skqp/gm/
Dlightingshader2.cpp52 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), in onOnceBeforeDraw()
54 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in onOnceBeforeDraw()
61 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in onOnceBeforeDraw()
68 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 0.0f, 0.0f), in onOnceBeforeDraw()
70 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(0.0f, 1.0f, 0.0f), in onOnceBeforeDraw()
72 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in onOnceBeforeDraw()
Dlightingshader.cpp72 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), in onOnceBeforeDraw()
76 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in onOnceBeforeDraw()
/external/skqp/samplecode/
DSampleLighting.cpp24 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, blue), dir)); in create_lights()
25 builder.setAmbientLightColor(SkColor3f::Make(0.1f, 0.1f, 0.1f)); in create_lights()
DSampleLitAtlas.cpp187 SkColor3f::Make(1.0f, 1.0f, 1.0f), fLightDir)); in updateLights()
188 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in updateLights()
/external/skqp/include/core/
DSkPoint3.h155 typedef SkPoint3 SkColor3f; typedef
/external/skia/include/core/
DSkPoint3.h155 typedef SkPoint3 SkColor3f; typedef
/external/skqp/tests/
DSerializationTest.cpp585 builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), in DEF_TEST()
587 builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); in DEF_TEST()