Lines Matching defs:GrGpuResource
9 #include "GrGpuResource.h"
23 GrGpuResource::GrGpuResource(GrGpu* gpu, LifeCycle lifeCycle)
31 void GrGpuResource::registerWithCache() {
35 GrGpuResource::~GrGpuResource() {
40 void GrGpuResource::release() {
48 void GrGpuResource::abandon() {
59 void GrGpuResource::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {
76 const SkData* GrGpuResource::setCustomData(const SkData* data) {
82 const GrContext* GrGpuResource::getContext() const {
90 GrContext* GrGpuResource::getContext() {
98 void GrGpuResource::didChangeGpuMemorySize() const {
109 void GrGpuResource::removeUniqueKey() {
117 void GrGpuResource::setUniqueKey(const GrUniqueKey& key) {
133 void GrGpuResource::notifyAllCntsAreZero(CntType lastCntTypeToReachZero) const {
143 GrGpuResource* mutableThis = const_cast<GrGpuResource*>(this);
149 bool GrGpuResource::notifyRefCountIsZero() const {
155 GrGpuResource* mutableThis = const_cast<GrGpuResource*>(this);
168 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) {
178 void GrGpuResource::removeScratchKey() {
185 void GrGpuResource::makeBudgeted() {
186 if (!this->wasDestroyed() && GrGpuResource::kUncached_LifeCycle == fLifeCycle) {
192 void GrGpuResource::makeUnbudgeted() {
193 if (!this->wasDestroyed() && GrGpuResource::kCached_LifeCycle == fLifeCycle &&
200 uint32_t GrGpuResource::CreateUniqueID() {