Lines Matching refs:reader
69 SkFourByteTag GetType(SkReadBuffer* reader) {
71 int version = reader->readInt();
72 SkFourByteTag typeTag = reader->readUInt();
73 return reader->validate(version == kCurrentVersion) ? typeTag : kInvalidTag;
76 bool UnpackCachedShaders(SkReadBuffer* reader,
83 const char* shaderBuf = static_cast<const char*>(reader->skipByteArray(&shaderLen));
90 reader->readPad32(&inputs[i], sizeof(inputs[i]));
92 reader->skip(sizeof(SkSL::Program::Inputs));
95 if (reader->readBool() && meta) {
98 if (reader->readBool()) {
99 meta->fSettings->fFragColorIsInOut = reader->readBool();
100 meta->fSettings->fForceHighPrecision = reader->readBool();
101 meta->fSettings->fUsePushConstants = reader->readBool();
104 meta->fAttributeNames.resize(reader->readInt());
107 const char* attrName = static_cast<const char*>(reader->skipByteArray(&attrLen));
113 meta->fHasCustomColorOutput = reader->readBool();
114 meta->fHasSecondaryColorOutput = reader->readBool();
119 if (!reader->isValid()) {
124 return reader->isValid();