/third_party/skia/tests/ |
D | GrQuadCropTest.cpp | 35 ASSERTF(quad.fDevice.quadType() == GrQuad::Type::kAxisAligned, in run_crop_axis_aligned_test() 42 SkRect actualBounds = quad.fDevice.bounds(); in run_crop_axis_aligned_test() 56 SkPoint expectedPoint = quad.fDevice.point(p); in run_crop_axis_aligned_test() 127 ASSERT_NEARLY_EQUAL(originalQuad.fDevice.x(i), quad.fDevice.x(i)); in run_crop_fully_covered_test() 128 ASSERT_NEARLY_EQUAL(originalQuad.fDevice.y(i), quad.fDevice.y(i)); in run_crop_fully_covered_test() 129 ASSERT_NEARLY_EQUAL(originalQuad.fDevice.w(i), quad.fDevice.w(i)); in run_crop_fully_covered_test() 142 if (originalQuad.fDevice.quadType() == GrQuad::Type::kPerspective) { in run_crop_fully_covered_test() 145 ASSERTF(originalQuad.fDevice.x(i) == quad.fDevice.x(i)); in run_crop_fully_covered_test() 146 ASSERTF(originalQuad.fDevice.y(i) == quad.fDevice.y(i)); in run_crop_fully_covered_test() 147 ASSERTF(originalQuad.fDevice.w(i) == quad.fDevice.w(i)); in run_crop_fully_covered_test() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkSecondaryCBDrawContext.cpp | 61 : fDevice(device) in GrVkSecondaryCBDrawContext() 65 SkASSERT(!fDevice); in ~GrVkSecondaryCBDrawContext() 71 fCachedCanvas = std::make_unique<SkCanvas>(fDevice); in getCanvas() 77 auto dContext = GrAsDirectContext(fDevice->recordingContext()); in flush() 80 dContext->priv().flushSurface(fDevice->targetProxy()); in flush() 88 return fDevice->wait(numSemaphores, waitSemaphores, deleteSemaphoresAfterWait); in wait() 93 fDevice.reset(); in releaseResources() 97 auto direct = fDevice->recordingContext()->asDirectContext(); in characterize() 102 SkImageInfo ii = fDevice->imageInfo(); in characterize() 107 GrSurfaceProxyView readSurfaceView = fDevice->readSurfaceView(); in characterize() [all …]
|
/third_party/skia/src/image/ |
D | SkSurface_Gpu.cpp | 35 , fDevice(std::move(device)) { in SkSurface_Gpu() 36 SkASSERT(fDevice->targetProxy()->priv().isExact()); in SkSurface_Gpu() 43 return fDevice->recordingContext(); in onGetRecordingContext() 47 return fDevice.get(); in getDevice() 97 SkCanvas* SkSurface_Gpu::onNewCanvas() { return new SkCanvas(fDevice); } in onNewCanvas() 100 GrSurfaceProxyView targetView = fDevice->readSurfaceView(); in onNewSurface() 105 return SkSurface::MakeRenderTarget(fDevice->recordingContext(), kBudgeted, info, sampleCount, in onNewSurface() 110 GrRenderTargetProxy* rtp = fDevice->targetProxy(); in onNewImageSnapshot() 115 auto rContext = fDevice->recordingContext(); in onNewImageSnapshot() 117 GrSurfaceProxyView srcView = fDevice->readSurfaceView(); in onNewImageSnapshot() [all …]
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkSecondaryCBDrawContext.cpp | 52 : fDevice(device) in GrVkSecondaryCBDrawContext() 56 SkASSERT(!fDevice); in ~GrVkSecondaryCBDrawContext() 62 fCachedCanvas = std::unique_ptr<SkCanvas>(new SkCanvas(fDevice)); in getCanvas() 68 fDevice->flush(); in flush() 73 return fDevice->wait(numSemaphores, waitSemaphores); in wait() 78 fDevice.reset(); in releaseResources() 82 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in characterize() 83 GrContext* ctx = fDevice->context(); in characterize() 116 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in isCompatible() 117 GrContext* ctx = fDevice->context(); in isCompatible() [all …]
|
/third_party/skia/tools/sk_app/ |
D | VulkanWindowContext.cpp | 28 #define GET_DEV_PROC(F) f ## F = (PFN_vk ## F) fGetDeviceProcAddr(fDevice, "vk" #F) 81 fDevice = backendContext.fDevice; in initializeContext() 98 fInterface.reset(new GrVkInterface(backendContext.fGetProc, fInstance, fDevice, in initializeContext() 146 fGetDeviceQueue(fDevice, fPresentQueueIndex, 0, &fPresentQueue); in initializeContext() 313 res = fCreateSwapchainKHR(fDevice, &swapchainCreateInfo, nullptr, &fSwapchain); in createSwapchain() 320 fDeviceWaitIdle(fDevice); in createSwapchain() 324 fDestroySwapchainKHR(fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain() 329 fDeviceWaitIdle(fDevice); in createSwapchain() 333 fDestroySwapchainKHR(fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain() 342 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, nullptr); in createBuffers() [all …]
|
D | DawnWindowContext.cpp | 38 fDevice = onInitializeContext(); in initializeContext() 40 fContext = GrDirectContext::MakeDawn(fDevice, fDisplayParams.fGrContextOptions); in initializeContext() 47 fSwapChain = fDevice.CreateSwapChain(nullptr, &swapChainDesc); in initializeContext() 53 fDevice.SetUncapturedErrorCallback(PrintDeviceError, 0); in initializeContext() 60 if (!fDevice.Get()) { in destroyContext() 67 fDevice = nullptr; in destroyContext() 97 fSwapChain = fDevice.CreateSwapChain(nullptr, &swapChainDesc); in resize()
|
D | MetalWindowContext.mm | 42 fDevice.reset(MTLCreateSystemDefaultDevice()); 43 fQueue.reset([*fDevice newCommandQueue]); 47 if (![*fDevice supportsTextureSampleCount:fDisplayParams.fMSAASampleCount]) { 65 fPipelineArchive = [*fDevice newBinaryArchiveWithDescriptor:*desc error:&error]; 68 fPipelineArchive = [*fDevice newBinaryArchiveWithDescriptor:*desc error:&error]; 83 backendContext.fDevice.retain((GrMTLHandle)fDevice.get()); 116 fDevice.reset();
|
D | GraphiteMetalWindowContext.mm | 31 fDevice.reset(MTLCreateSystemDefaultDevice()); 32 fQueue.reset([*fDevice newCommandQueue]); 36 if (![*fDevice supportsTextureSampleCount:fDisplayParams.fMSAASampleCount]) { 49 backendContext.fDevice.retain((GrMTLHandle)fDevice.get()); 79 fDevice.reset();
|
/third_party/flutter/skia/tools/sk_app/ |
D | VulkanWindowContext.cpp | 28 #define GET_DEV_PROC(F) f ## F = (PFN_vk ## F) fGetDeviceProcAddr(fDevice, "vk" #F) 80 fDevice = backendContext.fDevice; in initializeContext() 97 fInterface.reset(new GrVkInterface(backendContext.fGetProc, fInstance, fDevice, in initializeContext() 145 fGetDeviceQueue(fDevice, fPresentQueueIndex, 0, &fPresentQueue); in initializeContext() 306 res = fCreateSwapchainKHR(fDevice, &swapchainCreateInfo, nullptr, &fSwapchain); in createSwapchain() 313 fDeviceWaitIdle(fDevice); in createSwapchain() 317 fDestroySwapchainKHR(fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain() 326 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, nullptr); in createBuffers() 329 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, fImages); in createBuffers() 375 CreateSemaphore(fDevice, &semaphoreInfo, in createBuffers() [all …]
|
D | DawnWindowContext.cpp | 31 fDevice = onInitializeContext(); in initializeContext() 32 fContext = GrContext::MakeDawn(fDevice, fDisplayParams.fGrContextOptions); in initializeContext() 40 fSwapChain = fDevice.CreateSwapChain(&swapChainDesc); in initializeContext() 46 fDevice.SetErrorCallback(PrintDeviceError, 0); in initializeContext() 53 if (!fDevice.Get()) { in destroyContext() 60 fDevice = nullptr; in destroyContext() 95 fSwapChain = fDevice.CreateSwapChain(&swapChainDesc); in resize()
|
D | MetalWindowContext.mm | 34 fDevice = MTLCreateSystemDefaultDevice(); 35 fQueue = [fDevice newCommandQueue]; 38 if (![fDevice supportsTextureSampleCount:fDisplayParams.fMSAASampleCount]) { 46 fMetalLayer.device = fDevice; 51 fContext = GrContext::MakeMetal((__bridge void*)fDevice, (__bridge void*)fQueue, 73 [fDevice release];
|
/third_party/skia/src/core/ |
D | SkBlitter_A8.cpp | 22 uint8_t* device = fDevice.writable_addr8(x, y); in blitAntiH() 40 SkASSERT(fDevice.width() == totalCount); in blitAntiH() 44 memset(fDevice.writable_addr8(x, y), 0xFF, width); in blitH() 52 uint8_t* dst = fDevice.writable_addr8(x, y); in blitV() 53 const size_t dstRB = fDevice.rowBytes(); in blitV() 61 uint8_t* dst = fDevice.writable_addr8(x, y); in blitRect() 62 const size_t dstRB = fDevice.rowBytes(); in blitRect() 80 uint8_t* dst = fDevice.writable_addr8(x, y); in blitMask() 83 const size_t dstRB = fDevice.rowBytes(); in blitMask()
|
D | SkBlitter_ARGB32.cpp | 688 return &fDevice; in justAnOpaqueColor() 699 SkASSERT(x >= 0 && y >= 0 && x + width <= fDevice.width()); in blitH() 701 uint32_t* device = fDevice.writable_addr32(x, y); in blitH() 712 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiH() 737 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiH2() 738 SkDEBUGCODE((void)fDevice.writable_addr32(x + 1, y);) in blitAntiH2() 745 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiV2() 746 SkDEBUGCODE((void)fDevice.writable_addr32(x, y + 1);) in blitAntiV2() 749 device = (uint32_t*)((char*)device + fDevice.rowBytes()); in blitAntiV2() 801 if (blit_color(fDevice, mask, clip, fColor)) { in blitMask() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkBlitter_A8.cpp | 22 uint8_t* device = fDevice.writable_addr8(x, y); in blitAntiH() 40 SkASSERT(fDevice.width() == totalCount); in blitAntiH() 44 memset(fDevice.writable_addr8(x, y), 0xFF, width); in blitH() 52 uint8_t* dst = fDevice.writable_addr8(x, y); in blitV() 53 const size_t dstRB = fDevice.rowBytes(); in blitV() 61 uint8_t* dst = fDevice.writable_addr8(x, y); in blitRect() 62 const size_t dstRB = fDevice.rowBytes(); in blitRect() 80 uint8_t* dst = fDevice.writable_addr8(x, y); in blitMask() 83 const size_t dstRB = fDevice.rowBytes(); in blitMask()
|
D | SkBlitter_ARGB32.cpp | 688 return &fDevice; in justAnOpaqueColor() 699 SkASSERT(x >= 0 && y >= 0 && x + width <= fDevice.width()); in blitH() 701 uint32_t* device = fDevice.writable_addr32(x, y); in blitH() 712 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiH() 737 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiH2() 738 SkDEBUGCODE((void)fDevice.writable_addr32(x + 1, y);) in blitAntiH2() 745 uint32_t* device = fDevice.writable_addr32(x, y); in blitAntiV2() 746 SkDEBUGCODE((void)fDevice.writable_addr32(x, y + 1);) in blitAntiV2() 749 device = (uint32_t*)((char*)device + fDevice.rowBytes()); in blitAntiV2() 801 if (blit_color(fDevice, mask, clip, fColor)) { in blitMask() [all …]
|
D | SkCanvas.cpp | 183 sk_sp<SkBaseDevice> fDevice; member 193 , fDevice(std::move(device)) in DeviceCM() 203 SkASSERT(fDevice); in reset() 273 : fDevice(nullptr), fCurrLayer(canvas->fMCRec->fTopLayer), fPaint(nullptr) in SkDrawIter() 278 if (rec && rec->fDevice) { in next() 279 fDevice = rec->fDevice.get(); in next() 288 int getX() const { return fDevice->getOrigin().x(); } in getX() 289 int getY() const { return fDevice->getOrigin().y(); } in getY() 292 SkBaseDevice* fDevice; member in SkDrawIter 303 SkBaseDevice* device = layer->fDevice.get(); \ [all …]
|
/third_party/flutter/skia/tests/ |
D | VkYcbcrSamplerTest.cpp | 40 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \ 80 VkDevice fDevice = VK_NULL_HANDLE; member in VkYcbcrSamplerTestHelper 96 fVkDestroyImage(fDevice, fImage, nullptr); in ~VkYcbcrSamplerTestHelper() 100 fVkFreeMemory(fDevice, fImageMemory, nullptr); in ~VkYcbcrSamplerTestHelper() 105 if (fDevice != VK_NULL_HANDLE) { in ~VkYcbcrSamplerTestHelper() 106 fVkDeviceWaitIdle(fDevice); in ~VkYcbcrSamplerTestHelper() 107 fVkDestroyDevice(fDevice, nullptr); in ~VkYcbcrSamplerTestHelper() 108 fDevice = VK_NULL_HANDLE; in ~VkYcbcrSamplerTestHelper() 140 fBackendContext.fDevice = VK_NULL_HANDLE; in init() 147 fDevice = fBackendContext.fDevice; in init() [all …]
|
D | VkHardwareBufferTest.cpp | 377 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \ 390 if (VK_NULL_HANDLE == fDevice) { in releaseImage() 394 fVkDestroyImage(fDevice, fImage, nullptr); in releaseImage() 399 fVkFreeMemory(fDevice, fMemory, nullptr); in releaseImage() 407 fVkDestroySemaphore(fDevice, fSignalSemaphore, nullptr); in cleanup() 411 if (fDevice != VK_NULL_HANDLE) { in cleanup() 412 fVkDeviceWaitIdle(fDevice); in cleanup() 413 fVkDestroyDevice(fDevice, nullptr); in cleanup() 414 fDevice = VK_NULL_HANDLE; in cleanup() 499 VkDevice fDevice = VK_NULL_HANDLE; member in VulkanTestHelper [all …]
|
/third_party/flutter/skia/src/image/ |
D | SkSurface_Gpu.cpp | 33 , fDevice(std::move(device)) { in SkSurface_Gpu() 34 SkASSERT(fDevice->accessRenderTargetContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu() 79 SkCanvas* SkSurface_Gpu::onNewCanvas() { return new SkCanvas(fDevice); } in onNewCanvas() 82 int sampleCount = fDevice->accessRenderTargetContext()->numSamples(); in onNewSurface() 83 GrSurfaceOrigin origin = fDevice->accessRenderTargetContext()->origin(); in onNewSurface() 86 return SkSurface::MakeRenderTarget(fDevice->context(), kBudgeted, info, sampleCount, in onNewSurface() 91 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in onNewImageSnapshot() 96 GrContext* ctx = fDevice->context(); in onNewImageSnapshot() 119 const SkImageInfo info = fDevice->imageInfo(); in onNewImageSnapshot() 132 fDevice->writePixels(src, x, y); in onWritePixels() [all …]
|
/third_party/skia/tools/gpu/vk/ |
D | VkTestHelper.cpp | 25 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \ 49 fBackendContext.fDevice = VK_NULL_HANDLE; in init() 56 fDevice = fBackendContext.fDevice; in init() 98 if (fDevice != VK_NULL_HANDLE) { in cleanup() 99 fVkDeviceWaitIdle(fDevice); in cleanup() 100 fVkDestroyDevice(fDevice, nullptr); in cleanup() 101 fDevice = VK_NULL_HANDLE; in cleanup()
|
/third_party/flutter/skia/src/xps/ |
D | SkXPSDocument.cpp | 23 SkXPSDevice fDevice; member 42 , fDevice(SkISize{10000, 10000}) in SkXPSDocument() 49 fDevice.beginPortfolio(stream, fXpsFactory.get()); 58 fDevice.beginSheet(fUnitsPerMeter, fPixelsPerMeter, {width, height}); in onBeginPage() 59 fCanvas.reset(new SkCanvas(sk_ref_sp(&fDevice))); in onBeginPage() 66 fDevice.endSheet(); in onEndPage() 71 (void)fDevice.endPortfolio(); in onClose()
|
/third_party/skia/src/xps/ |
D | SkXPSDocument.cpp | 24 SkXPSDevice fDevice; member 43 , fDevice(SkISize{10000, 10000}) in SkXPSDocument() 50 fDevice.beginPortfolio(stream, fXpsFactory.get()); 59 fDevice.beginSheet(fUnitsPerMeter, fPixelsPerMeter, {width, height}); in onBeginPage() 60 fCanvas.reset(new SkCanvas(sk_ref_sp(&fDevice))); in onBeginPage() 67 fDevice.endSheet(); in onEndPage() 72 (void)fDevice.endPortfolio(); in onClose()
|
/third_party/flutter/skia/tools/gpu/vk/ |
D | VkTestContext.cpp | 31 : fDevice(device) in VkFenceSync() 51 result = fCreateCommandPool(fDevice, &createInfo, nullptr, &fCommandPool); in VkFenceSync() 60 result = fAllocateCommandBuffers(fDevice, &allocateInfo, &fCommandBuffer); in VkFenceSync() 78 fFreeCommandBuffers(fDevice, fCommandPool, 1, &fCommandBuffer); in ~VkFenceSync() 79 fDestroyCommandPool(fDevice, fCommandPool, nullptr); in ~VkFenceSync() 90 result = fCreateFence(fDevice, &info, nullptr, &fence); in insertFence() 113 auto result = fWaitForFences(fDevice, 1, &fence, true, kForever); in waitFence() 119 fDestroyFence(fDevice, fence, nullptr); in deleteFence() 124 VkDevice fDevice; member in __anonc377b2ef0111::VkFenceSync 226 grVkDeviceWaitIdle(fVk.fDevice); in teardown() [all …]
|
/third_party/flutter/skia/tools/gpu/dawn/ |
D | DawnTestContext.cpp | 83 : fDevice(device), fBuffer(buffer), fCalled(false) { in DawnFence() 89 fDevice.Tick(); in wait() 105 dawn::Device fDevice; member in __anonf088ffa10111::DawnFence 115 DawnFenceSync(dawn::Device device) : fDevice(device) { in DawnFenceSync() 127 buffer = fDevice.CreateBuffer(&desc); in insertFence() 132 DawnFence* fence = new DawnFence(fDevice, buffer); in insertFence() 149 dawn::Device fDevice; member in __anonf088ffa10111::DawnFenceSync 219 return GrContext::MakeDawn(fDevice, options); in makeGrContext() 232 fFenceSync.reset(new DawnFenceSync(fDevice)); in DawnTestContextImpl()
|
/third_party/skia/experimental/webgpu-bazel/src/ |
D | bindings.cpp | 102 fDevice = wgpu::Device::Acquire(emscripten_webgpu_get_device()); in WebGPUSurface() 103 fCanvasSwap = getSwapChainForCanvas(fDevice, canvasSelector, width, height); in WebGPUSurface() 107 return createShaderModule(fDevice, source.c_str()); in makeShader() 112 return createRenderPipeline(fDevice, vertexShader, fragmentShader); in makeRenderPipeline() 117 ::drawPipeline(fDevice, fCanvasSwap.GetCurrentTextureView(), pipeline, {r, g, b, a}); in drawPipeline() 121 wgpu::Device fDevice; member in WebGPUSurface
|