Home | History | Annotate | Download | only in core

Lines Matching defs:element

393      * Given an element of type T return its 1-based index in the dictionary. If
394 * the element wasn't previously in the dictionary it is automatically
398 int find(const T& element) {
399 return this->findAndReturnFlat(element)->index();
409 const SkFlatData* findAndReplace(const T& element,
416 SkFlatData* flat = this->findAndReturnMutableFlat(element);
470 const SkFlatData* element = fIndexedData[index-1];
471 SkASSERT(index == element->index());
474 this->unflatten(dst, element);
479 * Find or insert a flattened version of element into the dictionary.
482 const SkFlatData* findAndReturnFlat(const T& element) {
483 return this->findAndReturnMutableFlat(element);
503 SkFlatData* findAndReturnMutableFlat(const T& element) {
505 const SkFlatData& scratch = this->resetScratch(element, this->count()+1);
520 const SkFlatData& resetScratch(const T& element, int index) {
526 Traits::Flatten(fScratch, element);
552 void unflatten(T* dst, const SkFlatData* element) const {
553 element->unflatten<Traits>(dst,