Home
last modified time | relevance | path

Searched refs:fDevice (Results 1 – 25 of 62) sorted by relevance

123

/external/skqp/tools/sk_app/
DVulkanWindowContext.cpp27 #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()
301 res = fCreateSwapchainKHR(fDevice, &swapchainCreateInfo, nullptr, &fSwapchain); in createSwapchain()
308 fDeviceWaitIdle(fDevice); in createSwapchain()
312 fDestroySwapchainKHR(fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain()
321 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, nullptr); in createBuffers()
324 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, fImages); in createBuffers()
359 CreateCommandPool(fDevice, &commandPoolInfo, in createBuffers()
[all …]
/external/skia/src/gpu/vk/
DGrVkSecondaryCBDrawContext.cpp51 : fDevice(device) in GrVkSecondaryCBDrawContext()
55 SkASSERT(!fDevice); in ~GrVkSecondaryCBDrawContext()
61 fCachedCanvas = std::unique_ptr<SkCanvas>(new SkCanvas(fDevice)); in getCanvas()
67 fDevice->flush(); in flush()
72 return fDevice->wait(numSemaphores, waitSemaphores); in wait()
77 fDevice.reset(); in releaseResources()
81 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in characterize()
82 GrContext* ctx = fDevice->context(); in characterize()
113 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in isCompatible()
114 GrContext* ctx = fDevice->context(); in isCompatible()
[all …]
/external/skia/tools/sk_app/
DVulkanWindowContext.cpp28 #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()
301 res = fCreateSwapchainKHR(fDevice, &swapchainCreateInfo, nullptr, &fSwapchain); in createSwapchain()
308 fDeviceWaitIdle(fDevice); in createSwapchain()
312 fDestroySwapchainKHR(fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain()
321 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, nullptr); in createBuffers()
324 fGetSwapchainImagesKHR(fDevice, fSwapchain, &fImageCount, fImages); in createBuffers()
364 CreateSemaphore(fDevice, &semaphoreInfo, in createBuffers()
[all …]
DMetalWindowContext.mm35 fDevice = MTLCreateSystemDefaultDevice();
36 fQueue = [fDevice newCommandQueue];
41 fContext = GrContext::MakeMetal(fDevice, fQueue, fDisplayParams.fGrContextOptions);
60 [fDevice release];
/external/skia/src/core/
DSkBlitter_A8.cpp22 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()
DSkBlitter_ARGB32.cpp688 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 …]
DSkCanvas.cpp184 sk_sp<SkBaseDevice> fDevice; member
194 , fDevice(std::move(device)) in DeviceCM()
204 SkASSERT(fDevice); in reset()
274 : fDevice(nullptr), fCurrLayer(canvas->fMCRec->fTopLayer), fPaint(nullptr) in SkDrawIter()
279 if (rec && rec->fDevice) { in next()
280 fDevice = rec->fDevice.get(); in next()
289 int getX() const { return fDevice->getOrigin().x(); } in getX()
290 int getY() const { return fDevice->getOrigin().y(); } in getY()
293 SkBaseDevice* fDevice; member in SkDrawIter
304 SkBaseDevice* device = layer->fDevice.get(); \
[all …]
/external/skqp/src/core/
DSkBlitter_A8.cpp22 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()
DSkBlitter_ARGB32.cpp688 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 …]
DSkCanvas.cpp185 sk_sp<SkBaseDevice> fDevice; member
195 , fDevice(std::move(device)) in DeviceCM()
205 SkASSERT(fDevice); in reset()
275 : fDevice(nullptr), fCurrLayer(canvas->fMCRec->fTopLayer), fPaint(nullptr) in SkDrawIter()
280 if (rec && rec->fDevice) { in next()
281 fDevice = rec->fDevice.get(); in next()
290 int getX() const { return fDevice->getOrigin().x(); } in getX()
291 int getY() const { return fDevice->getOrigin().y(); } in getY()
294 SkBaseDevice* fDevice; member in SkDrawIter
305 SkBaseDevice* device = layer->fDevice.get(); \
[all …]
/external/libusb/libusb/os/
Dhaiku_pollfs.cpp32 USBDevice* fDevice; member in WatchedEntry
57 fDevice(NULL), in WatchedEntry()
93 fDevice = new(std::nothrow) USBDevice(path.Path()); in WatchedEntry()
94 if (fDevice != NULL && fDevice->InitCheck() == true) { in WatchedEntry()
97 unsigned long session_id = (unsigned long)&fDevice; in WatchedEntry()
113 *((USBDevice **)dev->os_priv) = fDevice; in WatchedEntry()
140 else if (fDevice) { in WatchedEntry()
141 delete fDevice; in WatchedEntry()
142 fDevice = NULL; in WatchedEntry()
163 if (fDevice) { in ~WatchedEntry()
[all …]
/external/skia/tools/gpu/mtl/
DMtlTestContext.mm33 , fDevice(device)
41 GR_VK_CALL_ERRCHECK(fVk, CreateCommandPool(fDevice, &createInfo, nullptr, &fCommandPool));
49 GR_VK_CALL_ERRCHECK(fVk, AllocateCommandBuffers(fDevice, &allocateInfo, &fCommandBuffer));
63 GR_VK_CALL(fVk, FreeCommandBuffers(fDevice, fCommandPool, 1, &fCommandBuffer));
64 GR_VK_CALL(fVk, DestroyCommandPool(fDevice, fCommandPool, nullptr));
73 GR_VK_CALL_ERRCHECK(fVk, CreateFence(fDevice, &info, nullptr, &fence));
92 auto result = GR_VK_CALL(fVk, WaitForFences(fDevice, 1, &fence, true, kForever));
98 GR_VK_CALL(fVk, DestroyFence(fDevice, fence, nullptr));
104 VkDevice fDevice;
139 return GrContext::MakeMetal((__bridge_retained void*)fDevice,
[all …]
/external/skqp/tools/gpu/mtl/
DMtlTestContext.mm29 , fDevice(device)
37 GR_VK_CALL_ERRCHECK(fVk, CreateCommandPool(fDevice, &createInfo, nullptr, &fCommandPool));
45 GR_VK_CALL_ERRCHECK(fVk, AllocateCommandBuffers(fDevice, &allocateInfo, &fCommandBuffer));
59 GR_VK_CALL(fVk, FreeCommandBuffers(fDevice, fCommandPool, 1, &fCommandBuffer));
60 GR_VK_CALL(fVk, DestroyCommandPool(fDevice, fCommandPool, nullptr));
69 GR_VK_CALL_ERRCHECK(fVk, CreateFence(fDevice, &info, nullptr, &fence));
88 auto result = GR_VK_CALL(fVk, WaitForFences(fDevice, 1, &fence, true, kForever));
94 GR_VK_CALL(fVk, DestroyFence(fDevice, fence, nullptr));
100 VkDevice fDevice;
133 return GrContext::MakeMetal((__bridge_retained void*)fDevice,
[all …]
/external/skia/src/xps/
DSkXPSDocument.cpp23 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()
/external/skqp/src/xps/
DSkXPSDocument.cpp23 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()
67 fDevice.endSheet(); in onEndPage()
72 (void)fDevice.endPortfolio(); in onClose()
/external/skqp/src/gpu/vk/
DGrVkSecondaryCBDrawContext.cpp46 : fDevice(device) {} in GrVkSecondaryCBDrawContext()
49 SkASSERT(!fDevice); in ~GrVkSecondaryCBDrawContext()
55 fCachedCanvas = std::unique_ptr<SkCanvas>(new SkCanvas(fDevice)); in getCanvas()
61 fDevice->flush(); in flush()
66 return fDevice->wait(numSemaphores, waitSemaphores); in wait()
71 fDevice.reset(); in releaseResources()
DGrVkGpu.cpp63 backendContext.fDevice == VK_NULL_HANDLE || in Make()
110 backendContext.fDevice, in Make()
123 backendContext.fDevice, in Make()
146 , fDevice(backendContext.fDevice) in GrVkGpu()
156 fDevice, fInterface)); in GrVkGpu()
254 fDevice = VK_NULL_HANDLE; in destroyResources()
567 GR_VK_CALL(interface, GetImageSubresourceLayout(fDevice, in uploadTexDataLinear()
1419 err = VK_CALL(AllocateCommandBuffers(fDevice, &cmdInfo, &cmdBuffer)); in createTestingOnlyVkImage()
1422 VK_CALL(DestroyImage(fDevice, image, nullptr)); in createTestingOnlyVkImage()
1485 err = VK_CALL(CreateBuffer(fDevice, &bufInfo, nullptr, &buffer)); in createTestingOnlyVkImage()
[all …]
/external/skqp/src/image/
DSkSurface_Gpu.cpp29 , fDevice(std::move(device)) { in SkSurface_Gpu()
30 SkASSERT(fDevice->accessRenderTargetContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu()
75 SkCanvas* SkSurface_Gpu::onNewCanvas() { return new SkCanvas(fDevice); } in onNewCanvas()
78 int sampleCount = fDevice->accessRenderTargetContext()->numColorSamples(); in onNewSurface()
79 GrSurfaceOrigin origin = fDevice->accessRenderTargetContext()->origin(); in onNewSurface()
82 return SkSurface::MakeRenderTarget(fDevice->context(), kBudgeted, info, sampleCount, in onNewSurface()
87 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in onNewImageSnapshot()
92 GrContext* ctx = fDevice->context(); in onNewImageSnapshot()
115 const SkImageInfo info = fDevice->imageInfo(); in onNewImageSnapshot()
128 fDevice->writePixels(src, x, y); in onWritePixels()
[all …]
/external/skia/tools/gpu/vk/
DVkTestContext.cpp31 : 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 __anonbc07f4f30111::VkFenceSync
226 grVkDeviceWaitIdle(fVk.fDevice); in teardown()
[all …]
/external/skqp/tools/gpu/vk/
DVkTestContext.cpp31 : 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 __anon3653cb2a0111::VkFenceSync
226 grVkDeviceWaitIdle(fVk.fDevice); in teardown()
[all …]
/external/skia/src/image/
DSkSurface_Gpu.cpp33 , fDevice(std::move(device)) { in SkSurface_Gpu()
34 SkASSERT(fDevice->accessRenderTargetContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu()
80 SkCanvas* SkSurface_Gpu::onNewCanvas() { return new SkCanvas(fDevice); } in onNewCanvas()
83 int sampleCount = fDevice->accessRenderTargetContext()->numColorSamples(); in onNewSurface()
84 GrSurfaceOrigin origin = fDevice->accessRenderTargetContext()->origin(); in onNewSurface()
87 return SkSurface::MakeRenderTarget(fDevice->context(), kBudgeted, info, sampleCount, in onNewSurface()
92 GrRenderTargetContext* rtc = fDevice->accessRenderTargetContext(); in onNewImageSnapshot()
97 GrContext* ctx = fDevice->context(); in onNewImageSnapshot()
120 const SkImageInfo info = fDevice->imageInfo(); in onNewImageSnapshot()
133 fDevice->writePixels(src, x, y); in onWritePixels()
[all …]
/external/skqp/tests/
DVkHardwareBufferTest.cpp376 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \
389 if (VK_NULL_HANDLE == fDevice) { in releaseImage()
393 fVkDestroyImage(fDevice, fImage, nullptr); in releaseImage()
398 fVkFreeMemory(fDevice, fMemory, nullptr); in releaseImage()
407 if (fDevice != VK_NULL_HANDLE) { in cleanup()
408 fVkDeviceWaitIdle(fDevice); in cleanup()
409 fVkDestroyDevice(fDevice, nullptr); in cleanup()
410 fDevice = VK_NULL_HANDLE; in cleanup()
492 VkDevice fDevice = VK_NULL_HANDLE; member in VulkanTestHelper
519 fBackendContext.fDevice = VK_NULL_HANDLE; in init()
[all …]
/external/skia/tests/
DVkHardwareBufferTest.cpp376 fVk##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, VK_NULL_HANDLE, fDevice)); \
389 if (VK_NULL_HANDLE == fDevice) { in releaseImage()
393 fVkDestroyImage(fDevice, fImage, nullptr); in releaseImage()
398 fVkFreeMemory(fDevice, fMemory, nullptr); in releaseImage()
406 fVkDestroySemaphore(fDevice, fSignalSemaphore, nullptr); in cleanup()
410 if (fDevice != VK_NULL_HANDLE) { in cleanup()
411 fVkDeviceWaitIdle(fDevice); in cleanup()
412 fVkDestroyDevice(fDevice, nullptr); in cleanup()
413 fDevice = VK_NULL_HANDLE; in cleanup()
498 VkDevice fDevice = VK_NULL_HANDLE; member in VulkanTestHelper
[all …]
/external/skqp/bench/
DSk4fBench.cpp63 SkPMColor fDevice[100]; member
78 for (size_t i = 0; i < SK_ARRAY_COUNT(fDevice); i += 4) { in onDraw()
79 Sk4f_ToBytes((uint8_t*)(fDevice+i), a, b, c, d); in onDraw()
/external/skia/bench/
DSk4fBench.cpp63 SkPMColor fDevice[100]; member
78 for (size_t i = 0; i < SK_ARRAY_COUNT(fDevice); i += 4) { in onDraw()
79 Sk4f_ToBytes((uint8_t*)(fDevice+i), a, b, c, d); in onDraw()

123