Lines Matching defs:header
20 // Pre-allocate space for 1 2D device-space quad, metadata, and header
88 return fBuffer->header(fCurrentEntry)->fHasLocals;
97 // The pointer to the current entry to read metadata/header details from
158 // optional local coordinates, and metadata. An entry always has a header that defines the
161 // [ header ] = 4 bytes
165 // [ device ws ] = 4 floats or 0 floats depending on fDeviceType in header
166 // [ local xs ] = 4 floats or 0 floats depending on fHasLocals in header
167 // [ local ys ] = 4 floats or 0 floats depending on fHasLocals in header
168 // [ local ws ] = 4 floats or 0 floats depending on fHasLocals and fLocalType in header
188 inline int entrySize(const Header* header) const {
189 if (header->fHasLocals) {
190 GrQuad::Type localType = static_cast<GrQuad::Type>(header->fLocalType);
191 return this->entrySize(static_cast<GrQuad::Type>(header->fDeviceType), &localType);
193 return this->entrySize(static_cast<GrQuad::Type>(header->fDeviceType), nullptr);
198 inline Header* header(char* entry) {
201 inline const Header* header(const char* entry) const {
271 // First the header
272 Header* h = this->header(entry);
322 // Make sure the start of the entry looks like a header
323 SkASSERT(this->header(entry)->fSentinel == kSentinel);
341 const Header* h = fBuffer->header(fCurrentEntry);
359 const Header* h = fBuffer->header(fCurrentEntry);