Lines Matching refs:device
21 SkSurface_Gpu::SkSurface_Gpu(SkGpuDevice* device) in SkSurface_Gpu() argument
22 : INHERITED(device->width(), device->height(), &device->surfaceProps()) in SkSurface_Gpu()
23 , fDevice(SkRef(device)) { in SkSurface_Gpu()
92 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(target, props)); in NewRenderTargetDirect() local
93 if (!device) { in NewRenderTargetDirect()
96 return SkNEW_ARGS(SkSurface_Gpu, (device)); in NewRenderTargetDirect()
101 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(ctx, budgeted, info, sampleCount, props, in NewRenderTarget() local
103 if (!device) { in NewRenderTarget()
106 return SkNEW_ARGS(SkSurface_Gpu, (device)); in NewRenderTarget()
121 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(surface->asRenderTarget(), props, in NewWrappedRenderTarget() local
123 if (!device) { in NewWrappedRenderTarget()
126 return SkNEW_ARGS(SkSurface_Gpu, (device)); in NewWrappedRenderTarget()