Lines Matching refs:resource
17 * Class that wraps a resource referenced by a GrProgramElement or GrDrawState. It manages
18 * converting refs to pending IO operations. It allows a resource ownership to be in three
32 * longer share an instance of this class, attempt to make the resource owned by GrGpuResourceRef
41 /** Does this object own a pending read or write on the resource it is wrapping. */
56 pending on the resource when markPendingIO is called. */
60 pending on the resource when markPendingIO is called. */
70 writes to the resource using the program element or draw state. It can only be called once.
98 pending on the resource when markPendingIO is called. */
99 GrTGpuResourceRef(T* resource, GrIOType ioType) : INHERITED(resource, ioType) {}
100 GrTGpuResourceRef(sk_sp<T> resource, GrIOType ioType) : INHERITED(resource, ioType) {}
105 pending on the resource when markPendingIO is called. */
106 void set(T* resource, GrIOType ioType) { this->setResource(resource, ioType); }
118 GrPendingIOResource(T* resource = nullptr) : fResource(nullptr) {
119 this->reset(resource);
126 void reset(T* resource = nullptr) {
127 if (resource) {
130 resource->addPendingRead();
133 resource->addPendingWrite();
136 resource->addPendingRead();
137 resource->addPendingWrite();
142 fResource = resource;