Home
last modified time | relevance | path

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

12

/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/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/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp51 EGLSurface fSurface; member in __anon7f448c030111::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/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 __anon883f76290111::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 __anon883f76290111::NullSink
183 : fSurface(SkSurface::MakeRasterN32Premul(FLAGS_width, FLAGS_height)) { in MP4Sink()
[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/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 …]
DDawnWindowContext.cpp77 fSurface = SkSurface::MakeFromBackendRenderTarget(fContext.get(), in getBackbufferSurface()
83 return fSurface; in getBackbufferSurface()
DGLWindowContext.h48 sk_sp<SkSurface> fSurface; variable
/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/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp111 void* fSurface; member in __anon211f56c80111::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/skia/tools/skiaserve/
DRequest.cpp70 if (!fSurface) { in getCanvas()
73 SkCanvas* target = fSurface->getCanvas(); in getCanvas()
181 fSurface.reset(surface); in enableGPU()
189 fSurface->flush(); in enableGPU()
196 fSurface.reset(this->createCPUSurface()); in enableGPU()
219 fSurface->flush(); in initPictureFromStream()
/third_party/skia/fuzz/
DFuzzDDLThreading.cpp98 sk_sp<SkSurface> fSurface; member in DDLFuzzer
121 fSurface = SkSurface::MakeRenderTarget(fContext, SkBudgeted::kNo, ii); in DDLFuzzer()
122 if (!fSurface || !fSurface->characterize(&fSurfaceCharacterization)) { in DDLFuzzer()
249 bool success = fSurface->draw(std::move(ddl)); in recordAndPlayDDL()
257 if (!fSurface) { in run()
/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
/third_party/skia/tests/
DSkDSLRuntimeEffectTest.cpp34 , fSurface(std::move(surface)) {} in DSLTestEffect()
68 SkCanvas* canvas = fSurface->getCanvas(); in test()
81 SkImageInfo info = fSurface->imageInfo(); in test()
82 if (!fSurface->readPixels(info, actual, info.minRowBytes(), 0, 0)) { in test()
107 sk_sp<SkSurface> fSurface; member in DSLTestEffect
DSkRuntimeEffectTest.cpp311 : fReporter(r), fSurface(std::move(surface)) {} in TestEffect()
340 SkCanvas* canvas = fSurface->getCanvas(); in test()
347 verify_2x2_surface_results(fReporter, fBuilder->effect(), fSurface.get(), expected); in test()
356 sk_sp<SkSurface> fSurface; member in TestEffect
363 : fReporter(r), fSurface(std::move(surface)) {} in TestBlend()
390 SkCanvas* canvas = fSurface->getCanvas(); in test()
397 verify_2x2_surface_results(fReporter, fBuilder->effect(), fSurface.get(), expected); in test()
406 sk_sp<SkSurface> fSurface; member in TestBlend
/third_party/icu/icu4c/source/samples/layout/
DGDIFontInstance.cpp111 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
196 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
348 fSurface->setFont(this); in readFontTable()
350 HDC hdc = fSurface->getHDC(); in readFontTable()
376 HDC hdc = fSurface->getHDC(); in getGlyphAdvance()
378 fSurface->setFont(this); in getGlyphAdvance()
DGDIFontMap.cpp23 : FontMap(fileName, pointSize, guiSupport, status), fSurface(surface) in GDIFontMap()
35 LEFontInstance *result = new GDIFontInstance(fSurface, fontName, pointSize, status); in openFont()
DGDIFontMap.h39 GDISurface *fSurface;
/third_party/skia/third_party/externals/icu/source/samples/layout/
DGDIFontInstance.cpp111 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
196 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
348 fSurface->setFont(this); in readFontTable()
350 HDC hdc = fSurface->getHDC(); in readFontTable()
376 HDC hdc = fSurface->getHDC(); in getGlyphAdvance()
378 fSurface->setFont(this); in getGlyphAdvance()
DGDIFontMap.cpp23 : FontMap(fileName, pointSize, guiSupport, status), fSurface(surface) in GDIFontMap()
35 LEFontInstance *result = new GDIFontInstance(fSurface, fontName, pointSize, status); in openFont()
DGDIFontMap.h39 GDISurface *fSurface;

12