Lines Matching defs:GrVkGpu
8 #include "src/gpu/vk/GrVkGpu.h"
61 sk_sp<GrGpu> GrVkGpu::Make(const GrVkBackendContext& backendContext,
208 sk_sp<GrVkGpu> vkGpu(new GrVkGpu(direct, backendContext, std::move(caps), interface,
221 GrVkGpu::GrVkGpu(GrDirectContext* direct, const GrVkBackendContext& backendContext,
258 void GrVkGpu::destroyResources() {
290 GrVkGpu::~GrVkGpu() {
294 // We don't delete the memory allocator until the very end of the GrVkGpu lifetime so that
301 void GrVkGpu::disconnect(DisconnectType type) {
313 GrThreadSafePipelineBuilder* GrVkGpu::pipelineBuilder() {
317 sk_sp<GrThreadSafePipelineBuilder> GrVkGpu::refPipelineBuilder() {
323 GrOpsRenderPass* GrVkGpu::onGetOpsRenderPass(
397 bool GrVkGpu::submitCommandBuffer(SyncQueue sync) {
467 sk_sp<GrGpuBuffer> GrVkGpu::onCreateBuffer(size_t size, GrGpuBufferType type,
497 bool GrVkGpu::onWritePixels(GrSurface* surface,
562 bool GrVkGpu::onTransferPixelsTo(GrTexture* texture,
635 bool GrVkGpu::onTransferPixelsFrom(GrSurface* surface,
703 void GrVkGpu::resolveImage(GrSurface* dst, GrVkRenderTarget* src, const SkIRect& srcRect,
747 void GrVkGpu::onResolveRenderTarget(GrRenderTarget* target, const SkIRect& resolveRect) {
761 bool GrVkGpu::uploadTexDataLinear(GrVkImage* texImage,
921 bool GrVkGpu::uploadTexDataOptimal(GrVkImage* texImage,
1035 bool GrVkGpu::uploadTexDataCompressed(GrVkImage* uploadTexture,
1101 bool GrVkGpu::uploadTexDataCompressed(GrVkImage* uploadTexture,
1146 sk_sp<GrTexture> GrVkGpu::onCreateTexture(SkISize dimensions,
1212 sk_sp<GrTexture> GrVkGpu::onCreateCompressedTexture(SkISize dimensions,
1245 sk_sp<GrTexture> GrVkGpu::onCreateCompressedTexture(SkISize dimensions,
1280 void GrVkGpu::copyBuffer(sk_sp<GrGpuBuffer> srcBuffer,
1296 bool GrVkGpu::updateBuffer(sk_sp<GrVkBuffer> buffer, const void* src,
1407 sk_sp<GrTexture> GrVkGpu::onWrapBackendTexture(const GrBackendTexture& backendTex,
1435 sk_sp<GrTexture> GrVkGpu::onWrapCompressedBackendTexture(const GrBackendTexture& beTex,
1441 sk_sp<GrTexture> GrVkGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex,
1480 sk_sp<GrRenderTarget> GrVkGpu::onWrapBackendRenderTarget(const GrBackendRenderTarget& backendRT) {
1515 sk_sp<GrRenderTarget> GrVkGpu::onWrapVulkanSecondaryCBAsRenderTarget(
1534 bool GrVkGpu::loadMSAAFromResolve(GrVkCommandBuffer* commandBuffer,
1542 bool GrVkGpu::onRegenerateMipMapLevels(GrTexture* tex) {
1635 sk_sp<GrAttachment> GrVkGpu::makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
1643 sk_sp<GrAttachment> GrVkGpu::makeMSAAAttachment(SkISize dimensions,
1681 bool GrVkGpu::createVkImageForBackendSurface(VkFormat vkFormat,
1748 bool GrVkGpu::onClearBackendTexture(const GrBackendTexture& backendTexture,
1806 GrBackendTexture GrVkGpu::onCreateBackendTexture(SkISize dimensions,
1840 GrBackendTexture GrVkGpu::onCreateCompressedBackendTexture(
1847 bool GrVkGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture,
1927 void set_layout_and_queue_from_mutable_state(GrVkGpu* gpu, GrVkImage* image,
1955 bool GrVkGpu::setBackendSurfaceState(GrVkImageInfo info,
1984 bool GrVkGpu::setBackendTextureState(const GrBackendTexture& backendTeture,
1998 bool GrVkGpu::setBackendRenderTargetState(const GrBackendRenderTarget& backendRenderTarget,
2012 void GrVkGpu::xferBarrier(GrRenderTarget* rt, GrXferBarrierType barrierType) {
2041 void GrVkGpu::deleteBackendTexture(const GrBackendTexture& tex) {
2050 bool GrVkGpu::compile(const GrProgramDesc& desc, const GrProgramInfo& programInfo) {
2090 bool GrVkGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
2112 GrBackendRenderTarget GrVkGpu::createTestingOnlyBackendRenderTarget(SkISize dimensions,
2132 void GrVkGpu::deleteTestingOnlyBackendRenderTarget(const GrBackendRenderTarget& rt) {
2146 void GrVkGpu::addBufferMemoryBarrier(const GrManagedResource* resource,
2163 void GrVkGpu::addBufferMemoryBarrier(VkPipelineStageFlags srcStageMask,
2183 void GrVkGpu::addImageMemoryBarrier(const GrManagedResource* resource,
2205 void GrVkGpu::prepareSurfacesForBackendAccessAndStateUpdates(
2240 void GrVkGpu::addFinishedProc(GrGpuFinishedProc finishedProc,
2246 void GrVkGpu::addFinishedCallback(sk_sp<GrRefCntedCallback> finishedCallback) {
2251 void GrVkGpu::takeOwnershipOfBuffer(sk_sp<GrGpuBuffer> buffer) {
2255 bool GrVkGpu::onSubmitToGpu(bool syncCpu) {
2263 void GrVkGpu::finishOutstandingGpuWork() {
2271 void GrVkGpu::onReportSubmitHistograms() {
2286 void GrVkGpu::copySurfaceAsCopyImage(GrSurface* dst,
2350 void GrVkGpu::copySurfaceAsBlit(GrSurface* dst,
2421 void GrVkGpu::copySurfaceAsResolve(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
2435 bool GrVkGpu::onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
2527 bool GrVkGpu::onReadPixels(GrSurface* surface,
2629 bool GrVkGpu::beginRenderPass(const GrVkRenderPass* renderPass,
2659 void GrVkGpu::endRenderPass(GrRenderTarget* target, GrSurfaceOrigin origin,
2667 bool GrVkGpu::checkVkResult(VkResult result) {
2679 SK_LOGE("GrVkGpu::checkVkResult VK_ERROR_DEVICE_LOST, cacheInfo = %{public}s",
2696 std::array<int, 2> GrVkGpu::GetHpsDimension(const SkBlurArg& blurArg) const
2728 void GrVkGpu::dumpVmaStats(SkString *out) {
2737 void GrVkGpu::setGpuMemoryAsyncReclaimerSwitch(bool enabled)
2746 void GrVkGpu::flushGpuMemoryInWaitQueue()
2755 void GrVkGpu::addAllocImageBytes(size_t bytes)
2764 void GrVkGpu::removeAllocImageBytes(size_t bytes)
2773 void GrVkGpu::addAllocBufferBytes(size_t bytes)
2782 void GrVkGpu::removeAllocBufferBytes(size_t bytes)
2792 void GrVkGpu::submitSecondaryCommandBuffer(std::unique_ptr<GrVkSecondaryCommandBuffer> buffer) {
2799 void GrVkGpu::submit(GrOpsRenderPass* renderPass) {
2806 GrFence SK_WARN_UNUSED_RESULT GrVkGpu::insertFence() {
2829 bool GrVkGpu::waitFence(GrFence fence) {
2837 void GrVkGpu::deleteFence(GrFence fence) const {
2841 std::unique_ptr<GrSemaphore> SK_WARN_UNUSED_RESULT GrVkGpu::makeSemaphore(bool isOwned) {
2845 std::unique_ptr<GrSemaphore> GrVkGpu::wrapBackendSemaphore(const GrBackendSemaphore& semaphore,
2851 void GrVkGpu::insertSemaphore(GrSemaphore* semaphore) {
2863 void GrVkGpu::waitSemaphore(GrSemaphore* semaphore) {
2875 std::unique_ptr<GrSemaphore> GrVkGpu::prepareTextureForCrossContextUsage(GrTexture* texture) {
2896 void GrVkGpu::addDrawable(std::unique_ptr<SkDrawable::GpuDrawHandler> drawable) {
2900 void GrVkGpu::storeVkPipelineCacheData() {