Lines Matching defs:resource
20 * Sets a unique key for the resource. If the resource was previously cached as scratch it will
21 * be converted to a uniquely-keyed resource. If the key is invalid then this is equivalent to
22 * removeUniqueKey(). If another resource is using the key then its unique key is removed and
23 * this resource takes over the key.
27 /** Removes the unique key from a resource. If the resource has a scratch key, it may be
32 * If the resource is uncached make it cached. Has no effect on resources that are wrapped or
38 * If the resource is cached make it uncached. Has no effect on resources that are wrapped or
44 * Get the resource's budgeted-type which indicates whether it counts against the resource cache
54 * Is the resource object wrapping an externally allocated GPU resource?
59 * If this resource can be used as a scratch resource this returns a valid scratch key.
60 * Otherwise it returns a key for which isNullScratch is true. The resource may currently be
61 * used as a uniquely keyed resource rather than scratch. Check isScratch().
66 * If the resource has a scratch key, the key will be removed. Since scratch keys are installed
67 * at resource creation time, this means the resource will never again be used as scratch.
79 ResourcePriv(GrGpuResource* resource) : fResource(resource) { }