Lines Matching refs:fDevice
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()
130 fDevice->imageInfo().colorInfo()); in onNewImageSnapshot()
138 const SkImageInfo info = fDevice->imageInfo(); in onNewImageSnapshot()
152 fDevice->writePixels(src, x, y); in onWritePixels()
161 fDevice->asyncRescaleAndReadPixels(info, in onAsyncRescaleAndReadPixels()
177 fDevice->asyncRescaleAndReadPixelsYUV420(yuvColorSpace, in onAsyncRescaleAndReadPixelsYUV420()
191 GrSurfaceProxyView readSurfaceView = fDevice->readSurfaceView(); in onCopyOnWrite()
199 if (!fDevice->replaceBackingProxy(mode)) { in onCopyOnWrite()
208 void SkSurface_Gpu::onDiscard() { fDevice->discard(); } in onDiscard()
213 auto dContext = fDevice->recordingContext()->asDirectContext(); in onFlush()
218 GrRenderTargetProxy* rtp = fDevice->targetProxy(); in onFlush()
225 return fDevice->wait(numSemaphores, waitSemaphores, deleteSemaphoresAfterWait); in onWait()
229 auto direct = fDevice->recordingContext()->asDirectContext(); in onCharacterize()
234 SkImageInfo ii = fDevice->imageInfo(); in onCharacterize()
239 GrSurfaceProxyView readSurfaceView = fDevice->readSurfaceView(); in onCharacterize()
280 auto surfaceContext = fDevice->recordingContext(); in onDraw()
288 GrSurfaceProxyView srcView = fDevice->readSurfaceView(); in onDraw()
294 const SkImageInfo info = fDevice->imageInfo(); in onDraw()
308 auto direct = fDevice->recordingContext()->asDirectContext(); in onIsCompatible()
321 SkImageInfo ii = fDevice->imageInfo(); in onIsCompatible()
326 GrSurfaceProxyView targetView = fDevice->readSurfaceView(); in onIsCompatible()
373 characterization.surfaceProps() == fDevice->surfaceProps(); in onIsCompatible()
381 auto direct = fDevice->recordingContext()->asDirectContext(); in onDraw()
386 GrSurfaceProxyView view = fDevice->readSurfaceView(); in onDraw()
529 auto rContext = fDevice->recordingContext(); in onReplaceBackendTexture()
539 auto* oldRTP = fDevice->targetProxy(); in onReplaceBackendTexture()
565 sk_sp<SkColorSpace> colorSpace = fDevice->imageInfo().refColorSpace(); in onReplaceBackendTexture()
575 return fDevice->replaceBackingProxy(mode, sk_ref_sp(proxy->asRenderTargetProxy()), grColorType, in onReplaceBackendTexture()