Lines Matching refs:this
4 * Use of this source code is governed by a BSD-style license that can be
111 * GrResourceAllocator should instantiate this proxy.
116 bool isLazy() const { return !this->isInstantiated() && SkToBool(fLazyInstantiateCallback); }
121 SkASSERT(!result || this->isLazy());
126 SkASSERT(!this->isFullyLazy());
129 int width() const { return this->dimensions().width(); }
130 int height() const { return this->dimensions().height(); }
137 SkRect getBoundsRect() const { return SkRect::Make(this->dimensions()); }
139 /* A perhaps faster check for this->dimensions() == this->backingStoreDimensions(). */
146 return SkRect::Make(this->backingStoreDimensions());
150 return SkIRect::MakeSize(this->backingStoreDimensions());
174 return !(*this == other);
197 * What this boils down to is that the uniqueID of a proxy can be used to consistently
233 /** @return The unique key for this proxy. May be invalid. */
242 /** Called when this task becomes a target of a GrRenderTask. */
245 /** How many render tasks has this proxy been the target of? */
251 // If this is a texture proxy and the proxy is already instantiated, return its backing
255 // If this is a render target proxy and the proxy is already instantiated, return its backing
267 * The pixel values of this proxy's surface cannot be modified (e.g. doesn't support write
278 * for resolving into. The render target resolves itself by blitting into this internal texture.
280 * resolve the render target before accessing this texture's data.)
287 * Retrieves the amount of GPU memory that will be or currently is used by this resource
294 SkASSERT(!this->isFullyLazy());
296 fGpuMemorySize = this->onUninstantiatedGpuMemorySize();
310 // The intended use of this copy call is simply to copy exact pixel values from one proxy to a
346 return fDebugName.isEmpty() ? SkStringPrintf("%d", this->uniqueID().asUInt()) : fDebugName;
384 // Takes UseAllocator because even though this is already instantiated it still can participate
406 // client can use this optional method to specify the proxy's dimensions. (A proxy's dimensions
410 SkASSERT(this->isFullyLazy());
418 // For deferred proxies this will be null until the proxy is instantiated.