Home
last modified time | relevance | path

Searched refs:SkSurface (Results 1 - 25 of 359) sorted by relevance

12345678910>>...15

/third_party/skia/src/image/
H A DSkSurface.cpp88 SkSurface::RescaleGamma rescaleGamma, in onAsyncRescaleAndReadPixels()
90 SkSurface::ReadPixelsCallback callback, in onAsyncRescaleAndReadPixels()
91 SkSurface::ReadPixelsContext context) { in onAsyncRescaleAndReadPixels()
162 static SkSurface_Base* asSB(SkSurface* surface) { in asSB()
166 static const SkSurface_Base* asConstSB(const SkSurface* surface) { in asConstSB()
172 SkSurface::SkSurface(int width, int height, const SkSurfaceProps* props) in SkSurface() function in SkSurface
180 SkSurface::SkSurface(const SkImageInfo& info, const SkSurfaceProps* props) in SkSurface() function in SkSurface
188 SkImageInfo SkSurface
[all...]
H A DSkSurface_Gpu.cpp58 SkSurface::BackendHandleAccess access) { in prepare_rt_for_external_access()
68 case SkSurface::kFlushRead_BackendHandleAccess: in prepare_rt_for_external_access()
70 case SkSurface::kFlushWrite_BackendHandleAccess: in prepare_rt_for_external_access()
71 case SkSurface::kDiscardWrite_BackendHandleAccess: in prepare_rt_for_external_access()
73 surface->notifyContentWillChange(SkSurface::kRetain_ContentChangeMode); in prepare_rt_for_external_access()
106 sk_sp<SkSurface> SkSurface_Gpu::onNewSurface(const SkImageInfo& info) { in onNewSurface()
112 return SkSurface::MakeRenderTarget(fDevice->recordingContext(), kBudgeted, info, sampleCount, in onNewSurface()
130 // want to ever retarget the SkSurface at another buffer we create. If the source is a in onNewImageSnapshot()
401 sk_sp<SkSurface> SkSurface
[all...]
H A DSkSurface_Raster.cpp23 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override;
81 sk_sp<SkSurface> SkSurface_Raster::onNewSurface(const SkImageInfo& info) { in onNewSurface()
82 return SkSurface::MakeRaster(info, &this->props()); in onNewSurface()
158 sk_sp<SkSurface> SkSurface::MakeRasterDirectReleaseProc(const SkImageInfo& info, void* pixels, in MakeRasterDirectReleaseProc()
174 sk_sp<SkSurface> SkSurface::MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in MakeRasterDirect()
179 sk_sp<SkSurface> SkSurface::MakeRaster(const SkImageInfo& info, size_t rowBytes, in MakeRaster()
195 sk_sp<SkSurface> SkSurfac
[all...]
/third_party/skia/include/core/
H A DSkSurface.h41 /** \class SkSurface
42 SkSurface is responsible for managing the pixels that a canvas draws into. The pixels can be
44 SkSurface takes care of allocating a SkCanvas that will draw into the surface. Call
46 SkSurface always has non-zero dimensions. If there is a request for a new surface, and either
49 class SK_API SkSurface : public SkRefCnt { class
52 /** Allocates raster SkSurface. SkCanvas returned by SkSurface draws directly into pixels.
54 SkSurface is returned if all parameters are valid.
68 @param rowBytes interval from one SkSurface row to the next
71 @return SkSurface i
[all...]
/third_party/skia/tests/
H A DSurfaceTest.cpp14 #include "include/core/SkSurface.h"
46 static sk_sp<SkSurface> create_surface(SkAlphaType at = kPremul_SkAlphaType, in create_surface()
52 return SkSurface::MakeRaster(info); in create_surface()
54 static sk_sp<SkSurface> create_direct_surface(SkAlphaType at = kPremul_SkAlphaType, in create_direct_surface()
62 return SkSurface::MakeRasterDirectReleaseProc(info, storage, rowBytes, in create_direct_surface()
66 static sk_sp<SkSurface> create_gpu_surface(GrRecordingContext* rContext, in create_gpu_surface()
73 return SkSurface::MakeRenderTarget(rContext, SkBudgeted::kNo, info); in create_gpu_surface()
75 static sk_sp<SkSurface> create_gpu_scratch_surface(GrRecordingContext* rContext, in create_gpu_scratch_surface()
82 return SkSurface::MakeRenderTarget(rContext, SkBudgeted::kYes, info); in create_gpu_scratch_surface()
87 REPORTER_ASSERT(reporter, nullptr == SkSurface in DEF_TEST()
[all...]
H A DImageNewShaderTest.cpp12 #include "include/core/SkSurface.h"
22 static void paint_source(SkSurface* sourceSurface) { in paint_source()
39 static void run_shader_test(skiatest::Reporter* reporter, SkSurface* sourceSurface, in run_shader_test()
40 SkSurface* destinationSurface, SkImageInfo& info) { in run_shader_test()
100 auto sourceSurface(SkSurface::MakeRaster(info)); in DEF_TEST()
101 auto destinationSurface(SkSurface::MakeRaster(info)); in DEF_TEST()
109 auto sourceSurface(SkSurface::MakeRenderTarget(rContext, SkBudgeted::kNo, info)); in gpu_to_gpu()
110 auto destinationSurface(SkSurface::MakeRenderTarget(rContext, SkBudgeted::kNo, info)); in gpu_to_gpu()
118 auto sourceSurface(SkSurface::MakeRaster(info)); in raster_to_gpu()
119 auto destinationSurface(SkSurface in raster_to_gpu()
[all...]
H A DGrSubmittedFlushTest.cpp11 #include "include/core/SkSurface.h"
33 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
54 surface->flush(SkSurface::BackendSurfaceAccess::kNoAccess, flushInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
69 surface->flush(SkSurface::BackendSurfaceAccess::kNoAccess, flushInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
72 surface->flush(SkSurface::BackendSurfaceAccess::kNoAccess, flushInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
82 surface->flush(SkSurface::BackendSurfaceAccess::kNoAccess, flushInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DSkbug12214.cpp11 #include "include/core/SkSurface.h"
17 sk_sp<SkSurface> surface1 = SkSurface::MakeRenderTarget(contextInfo.directContext(), in DEF_GPUTEST_FOR_ALL_CONTEXTS()
19 sk_sp<SkSurface> surface2 = SkSurface::MakeRaster(imageInfo); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
H A DDeferredDisplayListTest.cpp20 #include "include/core/SkSurface.h"
225 sk_sp<SkSurface> make(GrDirectContext* dContext) const { in make()
244 sk_sp<SkSurface> result = SkSurface::MakeFromBackendRenderTarget(dContext, backendRT, in make()
258 sk_sp<SkSurface> surface; in make()
288 surface->getBackendTexture(SkSurface::kFlushRead_BackendHandleAccess); in make()
380 // This tests SkSurfaceCharacterization/SkSurface compatibility
390 // First, create a DDL using the stock SkSurface parameters in DDLSurfaceCharacterizationTestImpl()
399 // The DDL should draw into an SkSurface created with the same parameters in DDLSurfaceCharacterizationTestImpl()
400 sk_sp<SkSurface> in DDLSurfaceCharacterizationTestImpl()
[all...]
H A DSkbug5221.cpp12 #include "include/core/SkSurface.h"
22 sk_sp<SkSurface> surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(256, 256))); in DEF_TEST()
27 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
H A DGrTextureMipMapInvalidationTest.cpp9 #include "include/core/SkSurface.h"
25 auto isMipped = [reporter](SkSurface* surf) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
34 auto mipsAreDirty = [](SkSurface* surf) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
43 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
46 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
79 auto surf = SkSurface::MakeRenderTarget( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 surf = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kYes, singlePixelInfo, 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DImageIsOpaqueTest.cpp14 #include "include/core/SkSurface.h"
19 static void check_isopaque(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in check_isopaque()
27 auto surfaceTransparent(SkSurface::MakeRaster(infoTransparent)); in DEF_TEST()
31 auto surfaceOpaque(SkSurface::MakeRaster(infoOpaque)); in DEF_TEST()
38 auto surfaceTransparent(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, infoTransparent)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
42 auto surfaceOpaque(SkSurface::MakeRenderTarget(context,SkBudgeted::kNo, infoOpaque)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DWritePixelsTest.cpp10 #include "include/core/SkSurface.h"
113 static void fill_surface(SkSurface* surface) { in fill_surface()
203 static bool check_write(skiatest::Reporter* reporter, SkSurface* surf, SkAlphaType surfaceAlphaType, in check_write()
309 static void call_writepixels(SkSurface* surface) { in call_writepixels()
317 auto surface(SkSurface::MakeRaster(info)); in DEF_TEST()
324 static void test_write_pixels(skiatest::Reporter* reporter, SkSurface* surface, in test_write_pixels()
427 auto surface(SkSurface::MakeRasterDirectReleaseProc(info, pixels, rowBytes, in DEF_TEST()
438 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(rContext, in test_write_pixels()
485 static sk_sp<SkSurface> create_sur
[all...]
H A DSurfaceSemaphoreTest.cpp10 #include "include/core/SkSurface.h"
77 sk_sp<SkSurface> childSurface(SkSurface::MakeRenderTarget(childDContext, SkBudgeted::kNo, in draw_child()
125 sk_sp<SkSurface> mainSurface(SkSurface::MakeRenderTarget(mainCtx, SkBudgeted::kNo, in surface_semaphore_test()
159 mainSurface->flush(SkSurface::BackendSurfaceAccess::kNoAccess, info); in surface_semaphore_test()
171 SkSurface::BackendHandleAccess::kFlushRead_BackendHandleAccess); in surface_semaphore_test()
239 sk_sp<SkSurface> mainSurface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
251 mainSurface->flush(SkSurface in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DRuntimeBlendTest.cpp13 #include "include/core/SkSurface.h"
30 static void test_blend(skiatest::Reporter* r, SkSurface* surface) { in test_blend()
79 sk_sp<SkSurface> surface(SkSurface::MakeRaster(info)); in DEF_TEST()
86 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(ctxInfo.directContext(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/experimental/wasm-skp-debugger/
H A Ddebugger_bindings.cpp3 * to an SkSurface with annotation, and detailed playback controls. It holds as many DebugCanvases
16 #include "include/core/SkSurface.h"
110 void drawTo(SkSurface* surface, int32_t index) { in drawTo()
131 void draw(SkSurface* surface) { in draw()
216 std::string jsonCommandList(sk_sp<SkSurface> surface) { in jsonCommandList()
334 int findCommandByPixel(SkSurface* surface, int x, int y, int commandIndex) { in findCommandByPixel()
360 SkColor evaluateCommandColor(SkSurface* surface, int command, int x, int y) { in evaluateCommandColor()
492 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrDirectContext> dContext, int width, int height) { in MakeOnScreenGLSurface()
511 sk_sp<SkSurface> surface(SkSurface in MakeOnScreenGLSurface()
[all...]
/third_party/skia/samplecode/
H A DSampleTextureUpload.cpp10 #include "include/core/SkSurface.h"
29 sk_sp<SkSurface> fBlueSurface;
30 sk_sp<SkSurface> fGraySurface;
38 fSurface = SkSurface::MakeRenderTarget(direct, SkBudgeted::kNo, imageInfo, 0, in RenderTargetTexture()
46 void uploadRasterSurface(sk_sp<SkSurface> rasterSurface) { in uploadRasterSurface()
53 sk_sp<SkSurface> fSurface;
83 sk_sp<SkSurface> getFilledRasterSurface(SkColor color, int size) { in getFilledRasterSurface()
84 sk_sp<SkSurface> surface(SkSurface::MakeRasterN32Premul(size, size)); in getFilledRasterSurface()
/third_party/skia/experimental/skottiekit/
H A Dskottiekit_bindings.cpp15 #include "include/core/SkSurface.h"
229 sk_sp<SkSurface> MakeOnScreenGLSurface(sk_sp<GrDirectContext> grContext, int width, int height) { in MakeOnScreenGLSurface()
251 sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(grContext.get(), target, in MakeOnScreenGLSurface()
257 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> grContext, int width, int height) { in MakeRenderTarget()
260 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(grContext.get(), in MakeRenderTarget()
268 sk_sp<SkSurface> MakeRenderTarget(sk_sp<GrDirectContext> grContext, SimpleImageInfo sii) { in MakeRenderTarget()
269 sk_sp<SkSurface> surface(SkSurface in MakeRenderTarget()
[all...]
/third_party/skia/tools/gpu/
H A DBackendSurfaceFactory.h17 class SkSurface;
22 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
30 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
40 /** Creates an SkSurface backed by a non-textureable render target. */
41 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
48 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
H A DBackendSurfaceFactory.cpp10 #include "include/core/SkSurface.h"
18 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface()
38 return SkSurface::MakeFromBackendTexture(dContext, in MakeBackendTextureSurface()
49 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface()
62 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface()
91 return SkSurface::MakeFromBackendRenderTarget( in MakeBackendRenderTargetSurface()
95 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface()
/third_party/skia/tools/
H A Dskottie2movie.cpp12 #include "include/core/SkSurface.h"
33 static void produce_frame(SkSurface* surf, skottie::Animation* anim, double frame) { in produce_frame()
97 sk_sp<SkSurface> surf; in main()
113 surf = SkSurface::MakeRenderTarget(grctx, in main()
124 surf = SkSurface::MakeRaster(info); in main()
139 auto read_pixels_cb = [](SkSurface::ReadPixelsContext ctx, in main()
140 std::unique_ptr<const SkSurface::AsyncReadResult> result) { in main()
147 SkSurface::RescaleGamma::kSrc, in main()
/third_party/skia/docs/examples/
H A Df16to8888drawImageBug.cpp11 sk_sp<SkSurface> surface = SkSurface::MakeRaster(imageInfo); in REG_FIDDLE()
19 sk_sp<SkSurface> surface2 = SkSurface::MakeRaster(imageInfo2); in REG_FIDDLE()
/third_party/skia/gm/
H A Dimagemasksubset.cpp18 #include "include/core/SkSurface.h"
29 sk_sp<SkImage> make_mask(const sk_sp<SkSurface>& surface) { in make_mask()
45 make_mask(SkSurface::MakeRasterDirect(surfaceInfo, pixels, rowBytes));
57 return make_mask(SkSurface::MakeRaster(info));
62 sk_sp<SkSurface> surface;
63 surface = SkSurface::MakeRenderTarget(c->recordingContext(), SkBudgeted::kNo, info);
64 return make_mask(surface ? surface : SkSurface::MakeRaster(info));
H A Dimage.cpp29 #include "include/core/SkSurface.h"
49 static void drawContents(SkSurface* surface, SkColor fillC) { in drawContents()
69 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) { in test_surface()
166 sk_sp<SkSurface> surf0(SkSurface::MakeRasterDirect(info, fBuffer, RB));
167 sk_sp<SkSurface> surf1(SkSurface::MakeRaster(info));
168 sk_sp<SkSurface> surf2(SkSurface::MakeRenderTarget(canvas->recordingContext(),
230 auto surface(SkSurface in make_raster()
[all...]
/third_party/skia/tools/fiddle/
H A Ddraw.cpp41 sk_sp<SkSurface> tmp2 = SkSurface::MakeFromBackendTexture( in draw()
50 sk_sp<SkSurface> tmp3 = SkSurface::MakeFromBackendRenderTarget(dContext, in draw()

Completed in 13 milliseconds

12345678910>>...15