Home
last modified time | relevance | path

Searched refs:SkSurface (Results 1 – 25 of 136) sorted by relevance

123456

/external/skia/tests/
DSurfaceTest.cpp30 static SkSurface* create_surface(SkAlphaType at = kPremul_SkAlphaType, in create_surface()
36 return SkSurface::NewRaster(info); in create_surface()
38 static SkSurface* create_direct_surface(SkAlphaType at = kPremul_SkAlphaType, in create_direct_surface()
46 return SkSurface::NewRasterDirectReleaseProc(info, storage, rowBytes, in create_direct_surface()
51 static SkSurface* create_gpu_surface(GrContext* context, SkAlphaType at = kPremul_SkAlphaType, in create_gpu_surface()
57 return SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info, 0, nullptr); in create_gpu_surface()
59 static SkSurface* create_gpu_scratch_surface(GrContext* context, in create_gpu_scratch_surface()
66 return SkSurface::NewRenderTarget(context, SkBudgeted::kYes, info, 0, nullptr); in create_gpu_scratch_surface()
72 REPORTER_ASSERT(reporter, nullptr == SkSurface::NewRaster(info)); in DEF_TEST()
73 REPORTER_ASSERT(reporter, nullptr == SkSurface::NewRasterDirect(info, nullptr, 0)); in DEF_TEST()
[all …]
DImageNewShaderTest.cpp27 void paintSource(SkSurface* sourceSurface) { in paintSource()
44 void runShaderTest(skiatest::Reporter* reporter, SkSurface* sourceSurface, SkSurface* destinationSu… in runShaderTest()
107 SkAutoTUnref<SkSurface> sourceSurface(SkSurface::NewRaster(info)); in DEF_TEST()
108 SkAutoTUnref<SkSurface> destinationSurface(SkSurface::NewRaster(info)); in DEF_TEST()
118 SkAutoTUnref<SkSurface> sourceSurface( in gpuToGpu()
119 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info)); in gpuToGpu()
120 SkAutoTUnref<SkSurface> destinationSurface( in gpuToGpu()
121 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info)); in gpuToGpu()
129 SkAutoTUnref<SkSurface> sourceSurface(SkSurface::NewRenderTarget(context, in gpuToRaster()
131 SkAutoTUnref<SkSurface> destinationSurface(SkSurface::NewRaster(info)); in gpuToRaster()
[all …]
DDrawPathTest.cpp21 SkSurface* surf = SkSurface::NewRasterN32Premul(300, 33300); in test_big_aa_rect()
98 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_crbug131181()
135 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_inversepathwithclip()
174 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_bug533()
216 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_bigcubic()
244 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(640, 480)); in test_halfway()
265 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(33000, 10)); in test_giantaa()
319 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(1000, 1000)); in test_crbug_472147_simple()
334 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(1000, 1000)); in test_crbug_472147_actual()
DImageIsOpaqueTest.cpp51 static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) { in check_isopaque()
58 SkAutoTUnref<SkSurface> surfaceTransparent(SkSurface::NewRaster(infoTransparent)); in DEF_TEST()
62 SkAutoTUnref<SkSurface> surfaceOpaque(SkSurface::NewRaster(infoOpaque)); in DEF_TEST()
70 SkAutoTUnref<SkSurface> surfaceTransparent( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
71 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, infoTransparent)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
75 SkAutoTUnref<SkSurface> surfaceOpaque( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
76 SkSurface::NewRenderTarget(context,SkBudgeted::kNo, infoOpaque)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/image/
DSkSurface.cpp129 static SkSurface_Base* asSB(SkSurface* surface) { in asSB()
135 SkSurface::SkSurface(int width, int height, const SkSurfaceProps* props) in SkSurface() function in SkSurface
143 SkSurface::SkSurface(const SkImageInfo& info, const SkSurfaceProps* props) in SkSurface() function in SkSurface
151 uint32_t SkSurface::generationID() { in generationID()
158 void SkSurface::notifyContentWillChange(ContentChangeMode mode) { in notifyContentWillChange()
162 SkCanvas* SkSurface::getCanvas() { in getCanvas()
166 SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted) { in newImageSnapshot()
171 SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted, ForceUnique unique) { in newImageSnapshot()
176 SkSurface* SkSurface::newSurface(const SkImageInfo& info) { in newSurface()
180 void SkSurface::draw(SkCanvas* canvas, SkScalar x, SkScalar y, in draw()
[all …]
DSkSurface_Gpu.cpp30 SkSurface::BackendHandleAccess access) { in prepare_rt_for_external_access()
32 case SkSurface::kFlushRead_BackendHandleAccess: in prepare_rt_for_external_access()
34 case SkSurface::kFlushWrite_BackendHandleAccess: in prepare_rt_for_external_access()
35 case SkSurface::kDiscardWrite_BackendHandleAccess: in prepare_rt_for_external_access()
37 surface->notifyContentWillChange(SkSurface::kRetain_ContentChangeMode); in prepare_rt_for_external_access()
71 SkSurface* SkSurface_Gpu::onNewSurface(const SkImageInfo& info) { in onNewSurface()
76 return SkSurface::NewRenderTarget(fDevice->context(), kBudgeted, info, sampleCount, in onNewSurface()
118 this->fDevice->replaceRenderTarget(SkSurface::kRetain_ContentChangeMode == mode); in onCopyOnWrite()
135 SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget* target, const SkSurfaceProps* props) { in NewRenderTargetDirect()
144 SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, SkBudgeted budgeted, const SkImageInfo& info, in NewRenderTarget()
[all …]
DSkSurface_Raster.cpp26 SkSurface* onNewSurface(const SkImageInfo&) override;
112 SkSurface* SkSurface_Raster::onNewSurface(const SkImageInfo& info) { in onNewSurface()
113 return SkSurface::NewRaster(info, &this->props()); in onNewSurface()
172 SkSurface* SkSurface::NewRasterDirectReleaseProc(const SkImageInfo& info, void* pixels, size_t rb, in NewRasterDirectReleaseProc()
188 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in NewRasterDirect()
193 SkSurface* SkSurface::NewRaster(const SkImageInfo& info, size_t rowBytes, in NewRaster()
209 SkSurface* SkSurface::NewRaster(const SkImageInfo& info, const SkSurfaceProps* props) { in NewRaster()
DSkSurface_Base.h16 class SkSurface_Base : public SkSurface {
38 virtual SkSurface* onNewSurface(const SkImageInfo&) = 0;
102 friend class SkSurface; variable
104 typedef SkSurface INHERITED;
/external/skia/include/core/
DSkSurface.h31 class SK_API SkSurface : public SkRefCnt {
44 static SkSurface* NewRasterDirect(const SkImageInfo&, void* pixels, size_t rowBytes,
51 static SkSurface* NewRasterDirectReleaseProc(const SkImageInfo&, void* pixels, size_t rowBytes,
64 static SkSurface* NewRaster(const SkImageInfo&, size_t rowBytes, const SkSurfaceProps*);
69 static SkSurface* NewRaster(const SkImageInfo&, const SkSurfaceProps* = NULL);
76 … static SkSurface* NewRasterN32Premul(int width, int height, const SkSurfaceProps* props = NULL) {
83 static SkSurface* NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProps*);
85 static SkSurface* NewRenderTargetDirect(GrRenderTarget* target) { in NewRenderTargetDirect()
95 static SkSurface* NewFromBackendTexture(GrContext*, const GrBackendTextureDesc&,
98 static SkSurface* NewWrappedRenderTarget(GrContext* ctx, const GrBackendTextureDesc& desc, in NewWrappedRenderTarget()
[all …]
/external/skia/gm/
Dsurface.cpp24 static SkSurface* make_surface(GrContext* ctx, const SkImageInfo& info, SkPixelGeometry geo, in make_surface()
36 return SkSurface::NewRenderTarget(ctx, SkBudgeted::kNo, info, 0, &props); in make_surface()
38 return SkSurface::NewRaster(info, &props); in make_surface()
95 SkAutoTUnref<SkSurface> surface(make_surface(ctx, info, rec[i].fGeo, in onDraw()
137 SkAutoTUnref<SkSurface> surf(canvas->newSurface(info, nullptr)); in onDraw()
139 surf.reset(SkSurface::NewRaster(info)); in onDraw()
146 SkAutoTUnref<SkSurface> surf2(surf->newSurface(info)); in onDraw()
Dimage.cpp38 static void drawContents(SkSurface* surface, SkColor fillC) { in drawContents()
58 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) { in test_surface()
174 SkAutoTUnref<SkSurface> surf0(SkSurface::NewRasterDirect(info, fBuffer, RB)); in onDraw()
175 SkAutoTUnref<SkSurface> surf1(SkSurface::NewRaster(info)); in onDraw()
176 SkAutoTUnref<SkSurface> surf2; // gpu in onDraw()
179 surf2.reset(SkSurface::NewRenderTarget(canvas->getGrContext(), in onDraw()
245 SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info)); in make_raster()
265 SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, SkBudgeted::kNo, info)); in make_gpu()
342 SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info)); in gen_raster()
489 SkAutoTUnref<SkSurface> surface( in __anon780ff07f0602()
[all …]
Dfatpathfill.cpp18 static SkSurface* new_surface(int width, int height) { in new_surface()
19 return SkSurface::NewRasterN32Premul(width, height); in new_surface()
34 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& path) { in draw_fatpath()
52 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H)); in DEF_SIMPLE_GM()
Dimage_shader.cpp30 SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info)); in make_raster()
40 SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, SkBudgeted::kNo, in make_texture()
/external/skia/cmake/
Dexample.cpp48 static std::shared_ptr<SkSurface> create_raster_surface(int w, int h) { in create_raster_surface()
50 return adopt(SkSurface::NewRasterN32Premul(w, h)); in create_raster_surface()
53 static std::shared_ptr<SkSurface> create_opengl_surface(int w, int h) { in create_opengl_surface()
56 return adopt(SkSurface::NewRenderTarget(grContext.get(), in create_opengl_surface()
64 std::shared_ptr<SkSurface> surface = (gl_ok && rand() % 2) ? create_opengl_surface(320, 240) in main()
/external/skia/example/
DHelloWorld.h36 SkSurface* createSurface() override { in createSurface()
39 return SkSurface::NewRenderTargetDirect(fRenderTarget, &props); in createSurface()
43 return fSurface = SkSurface::NewRaster(info, &props); in createSurface()
63 SkSurface* fSurface;
/external/skia/site/user/api/
Dcanvas.md28 backends is to use a `SkSurface`, which is an object that manages
36 #include "SkSurface.h"
40 SkAutoTUnref<SkSurface> rasterSurface(
41 SkSurface::NewRasterN32Premul(width, height));
63 SkAutoTUnref<SkSurface> surface(
64 SkSurface::NewRasterDirect(
85 #include "SkSurface.h"
92 SkAutoTUnref<SkSurface> gpuSurface(
93 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info));
95 SkDebugf("SkSurface::NewRenderTarget returned null\n");
[all …]
/external/skia/experimental/SkV8Example/
DSkV8Example.h18 class SkSurface; variable
32 SkSurface* createSurface() override;
49 SkSurface* fCurSurface;
/external/skia/tools/skiaserve/
DRequest.h35 SkSurface* createCPUSurface();
36 SkSurface* createGPUSurface();
51 SkAutoTUnref<SkSurface> fSurface;
DRequest.cpp94 SkSurface* Request::createCPUSurface() { in createCPUSurface()
97 return SkSurface::NewRaster(info); in createCPUSurface()
100 SkSurface* Request::createGPUSurface() { in createGPUSurface()
109 SkSurface* surface = SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info, 0, in createGPUSurface()
/external/skia/bench/
DMergeBench.cpp54 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(80, 80)); in make_bitmap()
66 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(80, 80)); in make_checkerboard()
DImageBench.cpp34 SkAutoTUnref<SkSurface> surface(canvas->newSurface(info)); in onPerCanvasPreDraw()
39 fRasterSurface.reset(SkSurface::NewRaster(info)); in onPerCanvasPreDraw()
60 SkAutoTUnref<SkSurface> fRasterSurface;
DSKPBench.h16 class SkSurface; variable
46 const SkTDArray<SkSurface*>& surfaces() const { return fSurfaces; } in surfaces()
57 SkTDArray<SkSurface*> fSurfaces; // for MultiPictureDraw
/external/skia/experimental/fiddle/
Dfiddle_main.cpp59 static SkData* encode_snapshot(SkSurface* surface) { in encode_snapshot()
101 SkAutoTUnref<SkSurface> rasterSurface( in main()
102 SkSurface::NewRaster(SkImageInfo::MakeN32Premul(options.size))); in main()
112 SkAutoTUnref<SkSurface> surface( in main()
113 SkSurface::NewRenderTarget( in main()
/external/skia/dm/
DDMGpuSupport.h31 static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory, in NewGpuSurface()
39 return SkSurface::NewRenderTarget(grFactory->get(type, options), SkBudgeted::kNo, in NewGpuSurface()
92 static inline SkSurface* NewGpuSurface(GrContextFactory*, in NewGpuSurface()
/external/skia/samplecode/
DSampleFilterQuality.cpp22 static SkSurface* make_surface(SkCanvas* canvas, const SkImageInfo& info) { in make_surface()
23 SkSurface* surface = canvas->newSurface(info); in make_surface()
25 surface = SkSurface::NewRaster(info); in make_surface()
58 SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info)); in make_image()
76 static SkImage* zoom_up(SkSurface* origSurf, SkImage* orig) { in zoom_up()
83 SkAutoTUnref<SkSurface> surface(origSurf->newSurface(info)); in zoom_up()
234 SkAutoTUnref<SkSurface> surface; in drawHere()

123456