Lines Matching refs:this
4 * Use of this source code is governed by a BSD-style license that can be
23 // We shouldn't need this but currently Android is relying on this being include transitively.
76 * GrDirectContext is destroyed. This also means that any objects created with this
141 * to texture id 0 on the next call to resetGLTextureBindings(). After this is called
143 * subsequently modifies them (meaning if this is called twice in a row with no intervening
150 * usable. Call this if you have lost the associated GPU context, and thus internal texture,
151 * buffer, etc. references/IDs are now invalid. Calling this ensures that the destructors of the
153 * rendered but not previously flushed may be lost. After this function is called all subsequent
156 * The typical use case for this function is that the underlying 3D context was lost and further
161 * live for the lifetime of the context object itself. The reason for this is so that
170 * VK_ERROR_DEVICE_LOST). If the backend context is lost, this call will also abandon this
175 // TODO: Remove this from public after migrating Chrome.
179 * Checks if the underlying 3D API reported an out-of-memory error. If this returns true it is
181 * the context is abandoned then this will report false.
183 * Currently this is implemented for:
186 * therefore hide the error from Skia. Also, it is not advised to use this in combination with
200 * The typical use case for this function is that the client is going to destroy the 3D context
252 * Specify the GPU resource cache limit. If the cache currently exceeds this limit,
284 this->performDeferredCleanup(msNotUsed);
343 * rendering is supported for the color type. 0 is returned if rendering to this color type
353 * executing any more commands on the GPU. If this call returns false, then the GPU back-end
357 * If deleteSemaphoresAfterWait is false then Skia will not delete the semaphores. In this case
371 this->flush(GrFlushInfo());
372 this->submit(syncCpu);
389 * has been called, and must keep them alive until then. If this call returns
397 * take this as a failure if they passed in semaphores to be submitted.
401 void flush() { this->flush({}); }
414 * If the syncCpu flag is true this function will return once the gpu has finished with all
425 // Chrome is using this!
435 * It is guaranteed that this backend format will be the one used by the following
528 * pixmap(s). Compatible, in this case, means that the backend format will be the result
530 * when this call returns.
557 return this->createBackendTexture(&srcData, 1, textureOrigin, renderable, isProtected,
568 return this->createBackendTexture(srcData,
581 return this->createBackendTexture(&srcData,
626 * The backend texture must be compatible with the provided pixmap(s). Compatible, in this case,
628 * can be deleted when this call returns.
653 return this->updateBackendTexture(texture,
667 return this->updateBackendTexture(texture,
773 * SkImages) will also be aware of this state change. This call does not submit the state change
775 * for this call is ordered linearly with all other calls that require GrContext::submit to be
779 * See GrBackendSurfaceMutableState to see what state can be set via this call.
785 * If previousState is not null and this returns true, then Skia will have filled in
786 * previousState to have the values of the state before this call.
804 // Steps to use this API:
832 bool operator!=(const DirectContextID& that) const { return !(*this == that); }
908 GrDirectContext* asDirectContext() override { return this; }
913 // outstanding work on the gpu. The main use currently for this function is when tearing down or
918 // issue more commands during the callback. Thus before calling this function we set the
920 // check in the call to know that it is safe to execute this. The shouldExecuteWhileAbandoned
921 // bool is used for this signal.