Home
last modified time | relevance | path

Searched refs:fSurface (Results 1 – 25 of 67) sorted by relevance

123

/third_party/flutter/skia/src/gpu/
DGrSurfacePriv.h20 bool hasPendingRead() const { return fSurface->hasPendingRead(); } in hasPendingRead()
21 bool hasPendingWrite() const { return fSurface->hasPendingWrite(); } in hasPendingWrite()
22 bool hasPendingIO() const { return fSurface->hasPendingIO(); } in hasPendingIO()
23 bool hasUniqueRef() const { return fSurface->internalHasUniqueRef(); } in hasUniqueRef()
25 GrInternalSurfaceFlags flags() const { return fSurface->fSurfaceFlags; } in flags()
28 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} in GrSurfacePriv()
36 GrSurface* fSurface; variable
/third_party/skia/modules/androidkit/src/
DSurface.h35 int width() const { return fSurface ? fSurface->width() : 0; } in width()
36 int height() const { return fSurface ? fSurface->height() : 0; } in height()
39 return fSurface ? fSurface->makeImageSnapshot() : nullptr; in makeImageSnapshot()
43 sk_sp<SkSurface> fSurface;
DSurface.cpp31 fSurface = fWindowContext->getBackbufferSurface(); in WindowSurface()
40 if (fSurface) { in getCanvas()
41 return fSurface->getCanvas(); in getCanvas()
47 fSurface->flushAndSubmit(); in flushAndSubmit()
49 fSurface = fWindowContext->getBackbufferSurface(); in flushAndSubmit()
104 fSurface = SkSurface::MakeRasterDirect(info, pixels, bm_info.stride); in BitmapSurface()
105 if (!fSurface) { in BitmapSurface()
115 if (fSurface) { in release()
117 fSurface.reset(); in release()
123 if (fSurface) { in getCanvas()
[all …]
/third_party/flutter/skia/bench/
DGrMipMapBench.cpp15 sk_sp<SkSurface> fSurface; member in GrMipMapBench
32 if (!fSurface) { in onDraw()
42 fSurface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info, 0, in onDraw()
48 fSurface->getCanvas()->clear(SK_ColorBLACK); in onDraw()
55 fSurface->getCanvas()->drawPoint(0, 0, paint); in onDraw()
60 canvas->drawImage(fSurface->makeImageSnapshot(), 0, 0, &paint); in onDraw()
66 fSurface.reset(nullptr); in onPerCanvasPostDraw()
/third_party/skia/bench/
DGrMipmapBench.cpp15 sk_sp<SkSurface> fSurface; member in GrMipMapBench
32 if (!fSurface) { in onDraw()
42 fSurface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info, 0, in onDraw()
48 fSurface->getCanvas()->clear(SK_ColorBLACK); in onDraw()
56 fSurface->getCanvas()->drawPoint(0, 0, paint); in onDraw()
61 canvas->drawImage(fSurface->makeImageSnapshot(), 0, 0, sampling, &paint); in onDraw()
67 fSurface.reset(nullptr); in onPerCanvasPostDraw()
/third_party/skia/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp220 : fContext(EGL_NO_CONTEXT), fDisplay(EGL_NO_DISPLAY), fSurface(EGL_NO_SURFACE) { in CommandBufferGLTestContext()
275 fSurface = gfCreatePbufferSurface(fDisplay, in CommandBufferGLTestContext()
279 if (EGL_NO_SURFACE == fSurface) { in CommandBufferGLTestContext()
300 if (!TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in CommandBufferGLTestContext()
360 if (EGL_NO_SURFACE != fSurface) { in destroyGLContext()
361 gfDestroySurface(fDisplay, fSurface); in destroyGLContext()
362 fSurface = EGL_NO_SURFACE; in destroyGLContext()
380 if (!TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
407 if (!gfSwapBuffers(fDisplay, fSurface)) { in presentCommandBuffer()
413 return TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext) != EGL_FALSE; in makeCurrent()
/third_party/flutter/skia/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp220 : fContext(EGL_NO_CONTEXT), fDisplay(EGL_NO_DISPLAY), fSurface(EGL_NO_SURFACE) { in CommandBufferGLTestContext()
261 fSurface = gfCreatePbufferSurface(fDisplay, in CommandBufferGLTestContext()
265 if (EGL_NO_SURFACE == fSurface) { in CommandBufferGLTestContext()
286 if (!TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in CommandBufferGLTestContext()
333 if (EGL_NO_SURFACE != fSurface) { in destroyGLContext()
334 gfDestroySurface(fDisplay, fSurface); in destroyGLContext()
335 fSurface = EGL_NO_SURFACE; in destroyGLContext()
344 if (!TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
360 if (!gfSwapBuffers(fDisplay, fSurface)) { in onPlatformSwapBuffers()
381 return TLSCurrentObjects::MakeCurrent(fDisplay, fSurface, fSurface, fContext) != EGL_FALSE; in makeCurrent()
/third_party/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp51 EGLSurface fSurface; member in __anonc9f29cd60111::EGLGLTestContext
77 , fSurface(EGL_NO_SURFACE) { in EGLGLTestContext()
163 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, kSurfaceAttribs); in EGLGLTestContext()
164 if (EGL_NO_SURFACE == fSurface) { in EGLGLTestContext()
171 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLTestContext()
224 if (fSurface) { in destroyGLContext()
225 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
226 fSurface = EGL_NO_SURFACE; in destroyGLContext()
302 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
/third_party/flutter/skia/tools/sk_app/
DGLWindowContext.cpp26 , fSurface(nullptr) { in GLWindowContext()
43 fSurface.reset(nullptr); in destroyContext()
57 if (nullptr == fSurface) { in getBackbufferSurface()
72 fSurface = SkSurface::MakeFromBackendRenderTarget(fContext.get(), backendRT, in getBackbufferSurface()
80 return fSurface; in getBackbufferSurface()
DVulkanWindowContext.cpp40 , fSurface(VK_NULL_HANDLE) in VulkanWindowContext()
122 fSurface = fCreateVkSurfaceFn(fInstance); in initializeContext()
123 if (VK_NULL_HANDLE == fSurface) { in initializeContext()
131 fSurface, &supported); in initializeContext()
153 VkResult res = fGetPhysicalDeviceSurfaceCapabilitiesKHR(fPhysicalDevice, fSurface, &caps); in createSwapchain()
159 res = fGetPhysicalDeviceSurfaceFormatsKHR(fPhysicalDevice, fSurface, &surfaceFormatCount, in createSwapchain()
167 res = fGetPhysicalDeviceSurfaceFormatsKHR(fPhysicalDevice, fSurface, &surfaceFormatCount, in createSwapchain()
174 res = fGetPhysicalDeviceSurfacePresentModesKHR(fPhysicalDevice, fSurface, &presentModeCount, in createSwapchain()
182 res = fGetPhysicalDeviceSurfacePresentModesKHR(fPhysicalDevice, fSurface, &presentModeCount, in createSwapchain()
281 swapchainCreateInfo.surface = fSurface; in createSwapchain()
[all …]
/third_party/skia/tools/sk_app/
DGLWindowContext.cpp26 , fSurface(nullptr) { in GLWindowContext()
44 fSurface.reset(nullptr); in destroyContext()
58 if (nullptr == fSurface) { in getBackbufferSurface()
73 fSurface = SkSurface::MakeFromBackendRenderTarget(fContext.get(), backendRT, in getBackbufferSurface()
81 return fSurface; in getBackbufferSurface()
DVulkanWindowContext.cpp40 , fSurface(VK_NULL_HANDLE) in VulkanWindowContext()
123 fSurface = fCreateVkSurfaceFn(fInstance); in initializeContext()
124 if (VK_NULL_HANDLE == fSurface) { in initializeContext()
132 fSurface, &supported); in initializeContext()
154 VkResult res = fGetPhysicalDeviceSurfaceCapabilitiesKHR(fPhysicalDevice, fSurface, &caps); in createSwapchain()
160 res = fGetPhysicalDeviceSurfaceFormatsKHR(fPhysicalDevice, fSurface, &surfaceFormatCount, in createSwapchain()
168 res = fGetPhysicalDeviceSurfaceFormatsKHR(fPhysicalDevice, fSurface, &surfaceFormatCount, in createSwapchain()
175 res = fGetPhysicalDeviceSurfacePresentModesKHR(fPhysicalDevice, fSurface, &presentModeCount, in createSwapchain()
183 res = fGetPhysicalDeviceSurfacePresentModesKHR(fPhysicalDevice, fSurface, &presentModeCount, in createSwapchain()
288 swapchainCreateInfo.surface = fSurface; in createSwapchain()
[all …]
/third_party/skia/src/core/
DSkDeferredDisplayListRecorder.cpp67 SkASSERT(!fSurface); in init()
171 fSurface = sk_make_sp<SkSurface_Gpu>(std::move(device)); in init()
172 return SkToBool(fSurface.get()); in init()
180 if (!fSurface && !this->init()) { in getCanvas()
184 return fSurface->getCanvas(); in getCanvas()
192 if (fSurface) { in detach()
193 SkCanvas* canvas = fSurface->getCanvas(); in detach()
206 fSurface = nullptr; in detach()
/third_party/skia/modules/skottie/src/
DSkottieTool.cpp88 : fSurface(std::move(surface)) { in PNGSink()
89 fSurface->getCanvas()->concat(scale_matrix); in PNGSink()
93 auto* canvas = fSurface->getCanvas(); in beginFrame()
109 sk_sp<SkImage> img = fSurface->makeImageSnapshot(); in endFrame()
115 const sk_sp<SkSurface> fSurface; member in __anonb15cb29c0111::PNGSink
162 : fSurface(std::move(surface)) { in NullSink()
163 fSurface->getCanvas()->concat(scale_matrix); in NullSink()
167 auto* canvas = fSurface->getCanvas(); in beginFrame()
176 const sk_sp<SkSurface> fSurface; member in __anonb15cb29c0111::NullSink
183 : fSurface(SkSurface::MakeRasterN32Premul(FLAGS_width, FLAGS_height)) { in MP4Sink()
[all …]
/third_party/flutter/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp76 EGLSurface fSurface; member in __anonff47ac0b0111::EGLGLTestContext
102 , fSurface(EGL_NO_SURFACE) { in EGLGLTestContext()
188 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, kSurfaceAttribs); in EGLGLTestContext()
189 if (EGL_NO_SURFACE == fSurface) { in EGLGLTestContext()
196 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLTestContext()
242 if (fSurface) { in destroyGLContext()
243 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
244 fSurface = EGL_NO_SURFACE; in destroyGLContext()
305 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
318 if (!eglSwapBuffers(fDisplay, fSurface)) { in onPlatformSwapBuffers()
/third_party/flutter/skia/src/core/
DSkDeferredDisplayListRecorder.cpp101 SkASSERT(!fSurface); in init()
194 fSurface = SkSurface_Gpu::MakeWrappedRenderTarget(fContext.get(), in init()
196 return SkToBool(fSurface.get()); in init()
204 if (!fSurface && !this->init()) { in getCanvas()
208 return fSurface->getCanvas(); in getCanvas()
216 if (fSurface) { in detach()
217 SkCanvas* canvas = fSurface->getCanvas(); in detach()
229 fSurface = nullptr; in detach()
/third_party/flutter/skia/modules/skottie/src/
DSkottieTool.cpp67 , fSurface(SkSurface::MakeRasterN32Premul(FLAGS_width, FLAGS_height)) { in PNGSink()
68 if (!fSurface) { in PNGSink()
74 if (!fSurface) return false; in saveFrame()
76 auto* canvas = fSurface->getCanvas(); in saveFrame()
86 auto png_data = fSurface->makeImageSnapshot()->encodeToData(); in saveFrame()
96 const sk_sp<SkSurface> fSurface; member in __anon018da5310111::PNGSink
119 const sk_sp<SkSurface> fSurface; member in __anon018da5310111::SKPSink
/third_party/flutter/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp111 void* fSurface; member in __anonced14cd00111::ANGLEGLContext
180 , fSurface(EGL_NO_SURFACE) in ANGLEGLContext()
307 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, surfaceAttribs); in ANGLEGLContext()
310 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in ANGLEGLContext()
425 if (EGL_NO_SURFACE != fSurface) { in destroyGLContext()
426 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
427 fSurface = EGL_NO_SURFACE; in destroyGLContext()
452 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
465 if (!eglSwapBuffers(fDisplay, fSurface)) { in onPlatformSwapBuffers()
/third_party/skia/tools/
DMSKPPlayer.cpp80 if (!layerState->fSurface) { in draw()
82 layerState->fSurface = MSKPPlayer::MakeSurfaceForLayer(layer, canvas); in draw()
83 if (!layerState->fSurface) { in draw()
93 SkCanvas* layerCanvas = layerState->fSurface->getCanvas(); in draw()
104 layerState->fSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in draw()
110 canvas->drawImageRect(layerState->fSurface->makeImageSnapshot(), in draw()
432 if (state.fSurface) { in playFrame()
433 if (state.fSurface->recordingContext() != canvas->recordingContext()) { in playFrame()
470 if (!state.fSurface || state.fSurface->recordingContext() != canvas->recordingContext()) { in allocateLayers()
472 state.fSurface = MakeSurfaceForLayer(fOffscreenLayers[id], canvas); in allocateLayers()
[all …]
/third_party/flutter/skia/experimental/ffmpeg/
DSkVideoEncoder.cpp142 fSurface.reset(); in reset()
303 if (!fSurface) { in beginFrame()
304 fSurface = SkSurface::MakeRaster(fInfo); in beginFrame()
305 if (!fSurface) { in beginFrame()
309 SkCanvas* canvas = fSurface->getCanvas(); in beginFrame()
316 if (!fSurface) { in endFrame()
320 return fSurface->peekPixels(&pm) && this->addFrame(pm); in endFrame()
/third_party/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp111 void* fSurface; member in __anond713b3db0111::ANGLEGLContext
181 , fSurface(EGL_NO_SURFACE) in ANGLEGLContext()
319 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, surfaceAttribs); in ANGLEGLContext()
322 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in ANGLEGLContext()
436 if (EGL_NO_SURFACE != fSurface) { in destroyGLContext()
437 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
438 fSurface = EGL_NO_SURFACE; in destroyGLContext()
477 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
/third_party/skia/experimental/ffmpeg/
DSkVideoEncoder.cpp141 fSurface.reset(); in reset()
305 if (!fSurface) { in beginFrame()
306 fSurface = SkSurface::MakeRaster(fInfo); in beginFrame()
307 if (!fSurface) { in beginFrame()
311 SkCanvas* canvas = fSurface->getCanvas(); in beginFrame()
318 if (!fSurface) { in endFrame()
322 return fSurface->peekPixels(&pm) && this->addFrame(pm); in endFrame()
/third_party/flutter/skia/samplecode/
DSampleMixer.cpp112 sk_sp<SkSurface> fSurface; member in ShaderMixerView
131 if (!fSurface) { in onDrawContent()
132 fSurface = canvas->makeSurface(SkImageInfo::MakeN32Premul(SIZE, SIZE)); in onDrawContent()
148 auto sh = fSurface->makeImageSnapshot()->makeShader(); in onDrawContent()
171 fSurface->getCanvas()->drawCircle(x, y, 10, p); in onClick()
DSampleTextureUpload.cpp38 fSurface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, imageInfo, 0, in RenderTargetTexture()
43 return fSurface->makeImageSnapshot(); in getImage()
49 fSurface->writePixels(pixmap, 0, 0); in uploadRasterSurface()
53 sk_sp<SkSurface> fSurface; member in TextureUploadSample::RenderTargetTexture
/third_party/skia/samplecode/
DSampleTextureUpload.cpp38 fSurface = SkSurface::MakeRenderTarget(direct, SkBudgeted::kNo, imageInfo, 0, in RenderTargetTexture()
43 return fSurface->makeImageSnapshot(); in getImage()
49 fSurface->writePixels(pixmap, 0, 0); in uploadRasterSurface()
53 sk_sp<SkSurface> fSurface; member in TextureUploadSample::RenderTargetTexture

123