Lines Matching refs:entry

25     // reserved for each entry to also have a 2D local quad. The reserved space assumes 2D device
48 // is not null, the local coordinates will also be attached to the entry. When an entry
51 // null then Iter::hasLocals() will report false for the added entry.
97 // The pointer to the current entry to read metadata/header details from
157 // Each logical entry in the buffer is a variable length tuple storing device coordinates,
158 // optional local coordinates, and metadata. An entry always has a header that defines the
197 // Helpers to access typed sections of the buffer, given the start of an entry
198 inline Header* header(char* entry) {
199 return static_cast<Header*>(static_cast<void*>(entry));
201 inline const Header* header(const char* entry) const {
202 return static_cast<const Header*>(static_cast<const void*>(entry));
205 inline T* metadata(char* entry) {
206 return static_cast<T*>(static_cast<void*>(entry + sizeof(Header)));
208 inline const T* metadata(const char* entry) const {
209 return static_cast<const T*>(static_cast<const void*>(entry + sizeof(Header)));
212 inline float* coords(char* entry) {
213 return static_cast<float*>(static_cast<void*>(entry + kMetaSize));
215 inline const float* coords(const char* entry) const {
216 return static_cast<const float*>(static_cast<const void*>(entry + kMetaSize));
225 void validate(const char* entry, int expectedCount) const;
269 // Fill in the entry, as described in fData's declaration
270 char* entry = fData.append(entrySize);
272 Header* h = this->header(entry);
281 *(this->metadata(entry)) = std::move(metadata);
284 float* coords = this->coords(entry);
289 SkASSERT((char*)coords - entry == entrySize);
315 void GrQuadBuffer<T>::validate(const char* entry, int expectedCount) const {
317 SkASSERT(entry);
319 SkASSERT(entry < fData.end());
322 // Make sure the start of the entry looks like a header
323 SkASSERT(this->header(entry)->fSentinel == kSentinel);
337 // There is at least one more entry, so store the current start for metadata access
348 // At this point, coords points to the start of the next entry
357 // Advance pointer by entry size