Home | History | Annotate | Download | only in core

Lines Matching refs:buf

12 sk_sp<SkLights> SkLights::MakeFromBuffer(SkReadBuffer& buf) {
16 if (!buf.readScalarArray(&ambColor.fX, 3)) {
22 int numLights = buf.readInt();
25 bool isPoint = buf.readBool();
28 if (!buf.readScalarArray(&color.fX, 3)) {
33 if (!buf.readScalarArray(&dirOrPos.fX, 3)) {
38 bool hasShadowMap = buf.readBool();
40 if (!(depthMap = buf.readImage())) {
45 bool isRadial = buf.readBool();
48 intensity = buf.readScalar();
62 void SkLights::flatten(SkWriteBuffer& buf) const {
63 buf.writeScalarArray(&this->ambientLightColor().fX, 3);
65 buf.writeInt(this->numLights());
71 buf.writeBool(isPoint);
72 buf.writeScalarArray(&light.color().fX, 3);
73 buf.writeScalarArray(&light.dir().fX, 3);
76 buf.writeBool(hasShadowMap);
79 buf.writeBool(isRadial);
82 buf.writeImage(light.getShadowMap());
85 buf.writeScalar(light.intensity());