Lines Matching refs:GrMtlGpu
8 #include "src/gpu/ganesh/mtl/GrMtlGpu.h"
47 sk_sp<GrGpu> GrMtlGpu::Make(const GrMtlBackendContext& context, const GrContextOptions& options,
67 return sk_sp<GrGpu>(new GrMtlGpu(direct, options, device, queue, context.fBinaryArchive.get()));
76 GrMtlGpu::GrMtlGpu(GrDirectContext* direct, const GrContextOptions& options, function
99 GrMtlGpu::~GrMtlGpu() { function
105 void GrMtlGpu::disconnect(DisconnectType type) {
114 GrThreadSafePipelineBuilder* GrMtlGpu::pipelineBuilder() {
118 sk_sp<GrThreadSafePipelineBuilder> GrMtlGpu::refPipelineBuilder() {
122 void GrMtlGpu::destroyResources() {
145 GrOpsRenderPass* GrMtlGpu::onGetOpsRenderPass(
179 GrMtlCommandBuffer* GrMtlGpu::commandBuffer() {
192 void GrMtlGpu::takeOwnershipOfBuffer(sk_sp<GrGpuBuffer> buffer) {
197 void GrMtlGpu::submit(GrOpsRenderPass* renderPass) {
203 bool GrMtlGpu::submitCommandBuffer(SyncQueue sync) {
238 void GrMtlGpu::checkForFinishedCommandBuffers() {
254 void GrMtlGpu::finishOutstandingGpuWork() {
263 void GrMtlGpu::addFinishedProc(GrGpuFinishedProc finishedProc,
269 void GrMtlGpu::addFinishedCallback(sk_sp<skgpu::RefCntedCallback> finishedCallback) {
284 bool GrMtlGpu::onSubmitToGpu(bool syncCpu) {
292 std::unique_ptr<GrSemaphore> GrMtlGpu::prepareTextureForCrossContextUsage(GrTexture*) {
297 sk_sp<GrGpuBuffer> GrMtlGpu::onCreateBuffer(size_t size,
311 bool GrMtlGpu::uploadToTexture(GrMtlTexture* tex,
424 bool GrMtlGpu::clearTexture(GrMtlTexture* tex, size_t bpp, uint32_t levelMask) {
520 sk_sp<GrAttachment> GrMtlGpu::makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
528 sk_sp<GrAttachment> GrMtlGpu::makeMSAAAttachment(SkISize dimensions,
547 sk_sp<GrTexture> GrMtlGpu::onCreateTexture(SkISize dimensions,
589 sk_sp<GrTexture> GrMtlGpu::onCreateCompressedTexture(SkISize dimensions,
715 sk_sp<GrTexture> GrMtlGpu::onWrapBackendTexture(const GrBackendTexture& backendTex,
732 sk_sp<GrTexture> GrMtlGpu::onWrapCompressedBackendTexture(const GrBackendTexture& backendTex,
748 sk_sp<GrTexture> GrMtlGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex,
779 sk_sp<GrRenderTarget> GrMtlGpu::onWrapBackendRenderTarget(const GrBackendRenderTarget& backendRT) {
797 bool GrMtlGpu::onRegenerateMipMapLevels(GrTexture* texture) {
863 bool GrMtlGpu::createMtlTextureForBackendSurface(MTLPixelFormat mtlFormat,
908 GrBackendTexture GrMtlGpu::onCreateBackendTexture(SkISize dimensions,
926 bool GrMtlGpu::onClearBackendTexture(const GrBackendTexture& backendTexture,
1014 GrBackendTexture GrMtlGpu::onCreateCompressedBackendTexture(
1028 bool GrMtlGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture,
1115 void GrMtlGpu::deleteBackendTexture(const GrBackendTexture& tex) {
1120 bool GrMtlGpu::compile(const GrProgramDesc& desc, const GrProgramInfo& programInfo) {
1133 bool GrMtlGpu::precompileShader(const SkData& key, const SkData& data) {
1138 bool GrMtlGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
1156 GrBackendRenderTarget GrMtlGpu::createTestingOnlyBackendRenderTarget(SkISize dimensions,
1183 void GrMtlGpu::deleteTestingOnlyBackendRenderTarget(const GrBackendRenderTarget& rt) {
1195 void GrMtlGpu::copySurfaceAsResolve(GrSurface* dst, GrSurface* src) {
1211 void GrMtlGpu::copySurfaceAsBlit(GrSurface* dst, GrSurface* src,
1246 bool GrMtlGpu::onCopySurface(GrSurface* dst, const SkIRect& dstRect,
1322 bool GrMtlGpu::onWritePixels(GrSurface* surface,
1346 bool GrMtlGpu::onReadPixels(GrSurface* surface,
1397 bool GrMtlGpu::onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
1431 bool GrMtlGpu::onTransferPixelsTo(GrTexture* texture,
1486 bool GrMtlGpu::onTransferPixelsFrom(GrSurface* surface,
1522 bool GrMtlGpu::readOrTransferPixels(GrSurface* surface,
1579 GrFence SK_WARN_UNUSED_RESULT GrMtlGpu::insertFence() {
1592 bool GrMtlGpu::waitFence(GrFence fence) {
1601 void GrMtlGpu::deleteFence(GrFence fence) {
1607 std::unique_ptr<GrSemaphore> SK_WARN_UNUSED_RESULT GrMtlGpu::makeSemaphore(bool /*isOwned*/) {
1612 std::unique_ptr<GrSemaphore> GrMtlGpu::wrapBackendSemaphore(const GrBackendSemaphore& semaphore,
1619 void GrMtlGpu::insertSemaphore(GrSemaphore* semaphore) {
1628 void GrMtlGpu::waitSemaphore(GrSemaphore* semaphore) {
1637 void GrMtlGpu::onResolveRenderTarget(GrRenderTarget* target, const SkIRect&) {
1650 void GrMtlGpu::resolve(GrMtlAttachment* resolveAttachment,
1668 GrMtlRenderCommandEncoder* GrMtlGpu::loadMSAAFromResolve(
1753 void GrMtlGpu::testingOnly_startCapture() {
1775 void GrMtlGpu::testingOnly_stopCapture() {
1787 void GrMtlGpu::onDumpJSON(SkJSONWriter* writer) const {