Lines Matching refs:this

4  * Use of this source code is governed by a BSD-style license that can be
40 this->setMemory(data, size);
69 return static_cast<const T*>(this->skip(sizeof(T)));
72 return static_cast<const T*>(this->skip(count, sizeof(T)));
84 uint32_t value = this->readUInt();
85 if (!this->validate(value <= static_cast<uint32_t>(max))) {
99 SkPoint readPoint() { SkPoint p; this->readPoint(&p); return p; }
112 return SkPaintPriv::Unflatten(*this);
117 return sk_sp<T>((T*)this->readFlattenable(T::GetFlattenableType()));
119 sk_sp<SkColorFilter> readColorFilter() { return this->readFlattenable<SkColorFilterBase>(); }
121 sk_sp<SkDrawLooper> readDrawLooper() { return this->readFlattenable<SkDrawLooper>(); }
123 sk_sp<SkImageFilter> readImageFilter() { return this->readFlattenable<SkImageFilter_Base>(); }
124 sk_sp<SkBlender> readBlender() { return this->readFlattenable<SkBlenderBase>(); }
125 sk_sp<SkMaskFilter> readMaskFilter() { return this->readFlattenable<SkMaskFilterBase>(); }
126 sk_sp<SkPathEffect> readPathEffect() { return this->readFlattenable<SkPathEffect>(); }
127 sk_sp<SkShader> readShader() { return this->readFlattenable<SkShaderBase>(); }
147 // If there is a real error (e.g. data is corrupted) this returns null. If the image cannot
148 // be created (e.g. it was not originally encoded) then this returns an image that doesn't
159 * Call this with a pre-loaded array of Factories, in the same order as
160 * were created/written by the writer. SkPicture uses this.
176 this->setInvalid();
188 return this->validate(n <= (this->available() / sizeof(T)));
193 return this->validate(index >= 0 && index < count);
203 return static_cast<T>(this->checkInt(static_cast<int32_t>(min),
216 bool isAvailable(size_t size) const { return size <= this->available(); }