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

12345678

/external/skia/src/image/
H A DSkSurface.cpp119 static SkSurface_Base* asSB(SkSurface* surface) {
125 SkSurface::SkSurface(int width, int height, const SkSurfaceProps* props) function in class:SkSurface
133 SkSurface::SkSurface(const SkImageInfo& info, const SkSurfaceProps* props) function in class:SkSurface
141 uint32_t SkSurface::generationID() {
148 void SkSurface::notifyContentWillChange(ContentChangeMode mode) {
152 SkCanvas* SkSurface::getCanvas() {
156 sk_sp<SkImage> SkSurface::makeImageSnapshot() {
160 sk_sp<SkSurface> SkSurfac
[all...]
H A DSkSurface_Gpu.cpp35 SkSurface::BackendHandleAccess access) {
37 case SkSurface::kFlushRead_BackendHandleAccess:
39 case SkSurface::kFlushWrite_BackendHandleAccess:
40 case SkSurface::kDiscardWrite_BackendHandleAccess:
42 surface->notifyContentWillChange(SkSurface::kRetain_ContentChangeMode);
80 sk_sp<SkSurface> SkSurface_Gpu::onNewSurface(const SkImageInfo& info) {
85 return SkSurface::MakeRenderTarget(fDevice->context(), kBudgeted, info, sampleCount,
105 // want to ever retarget the SkSurface at another buffer we create. Force a copy now to avoid
141 fDevice->replaceRenderTargetContext(SkSurface::kRetain_ContentChangeMode == mode);
191 sk_sp<SkSurface> SkSurfac
[all...]
H A DSkSurface_Base.h13 #include "SkSurface.h"
16 class SkSurface_Base : public SkSurface {
38 virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo&) = 0;
101 // called by SkSurface to compute a new genID
115 friend class SkSurface;
117 typedef SkSurface INHERITED;
/external/skia/tests/
H A Dskbug5221.cpp10 #include "SkSurface.h"
22 sk_sp<SkSurface> surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(256, 256)));
28 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(
H A DImageNewShaderTest.cpp11 #include "SkSurface.h"
24 static void paint_source(SkSurface* sourceSurface) {
41 static void run_shader_test(skiatest::Reporter* reporter, SkSurface* sourceSurface,
42 SkSurface* destinationSurface, SkImageInfo& info) {
103 auto sourceSurface(SkSurface::MakeRaster(info));
104 auto destinationSurface(SkSurface::MakeRaster(info));
114 auto sourceSurface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info));
115 auto destinationSurface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info));
123 auto sourceSurface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info));
124 auto destinationSurface(SkSurface
[all...]
H A DGrTextureMipMapInvalidationTest.cpp17 #include "SkSurface.h"
22 auto isMipped = [] (SkSurface* surf) {
26 auto mipsAreDirty = [] (SkSurface* surf) {
32 auto surf1 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info);
33 auto surf2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info);
H A Dskbug6389.cpp12 #include "SkSurface.h"
16 auto s = SkSurface::MakeRasterN32Premul(100, 100);
H A DSurfaceTest.cpp18 #include "SkSurface.h"
38 static sk_sp<SkSurface> create_surface(SkAlphaType at = kPremul_SkAlphaType,
44 return SkSurface::MakeRaster(info);
46 static sk_sp<SkSurface> create_direct_surface(SkAlphaType at = kPremul_SkAlphaType,
54 return SkSurface::MakeRasterDirectReleaseProc(info, storage, rowBytes,
59 static sk_sp<SkSurface> create_gpu_surface(GrContext* context, SkAlphaType at = kPremul_SkAlphaType,
65 return SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info);
67 static sk_sp<SkSurface> create_gpu_scratch_surface(GrContext* context,
74 return SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info);
80 REPORTER_ASSERT(reporter, nullptr == SkSurface
[all...]
/external/skia/include/core/
H A DSkSurface.h23 * SkSurface is responsible for managing the pixels that a canvas draws into. The pixels can be
26 * SkSurface takes care of allocating a SkCanvas that will draw into the surface. Call
29 * SkSurface always has non-zero dimensions. If there is a request for a new surface, and either
32 class SK_API SkSurface : public SkRefCnt { class in inherits:SkRefCnt
43 static sk_sp<SkSurface> MakeRasterDirect(const SkImageInfo&, void* pixels, size_t rowBytes,
50 static sk_sp<SkSurface> MakeRasterDirectReleaseProc(const SkImageInfo&, void* pixels, size_t rowBytes,
63 static sk_sp<SkSurface> MakeRaster(const SkImageInfo&, size_t rowBytes, const SkSurfaceProps*);
68 static sk_sp<SkSurface> MakeRaster(const SkImageInfo& info,
78 static sk_sp<SkSurface> MakeRasterN32Premul(int width, int height,
84 * Used to wrap a pre-existing backend 3D API texture as a SkSurface
[all...]
/external/skia/experimental/SkV8Example/
H A DSkV8Example.h18 class SkSurface;
32 SkSurface* createSurface() override;
49 SkSurface* fCurSurface;
/external/skia/tools/viewer/sk_app/
H A DGLWindowContext.h15 #include "SkSurface.h"
25 sk_sp<SkSurface> getBackbufferSurface() override;
54 sk_sp<SkSurface> fSurface;
/external/skia/bench/
H A DClipMaskBench.cpp15 #include "SkSurface.h"
50 sk_sp<SkSurface> surface = SkSurface::MakeRaster(SkImageInfo::MakeA8(size, size));
56 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(size, size);
H A DImageBench.cpp11 #include "SkSurface.h"
40 fRasterSurface = SkSurface::MakeRaster(n32Info);
61 sk_sp<SkSurface> fRasterSurface;
H A DSKPBench.h16 class SkSurface;
46 const SkTDArray<SkSurface*>& surfaces() const { return fSurfaces; }
57 SkTDArray<SkSurface*> fSurfaces; // for MultiPictureDraw
H A DMergeBench.cpp12 #include "SkSurface.h"
20 sk_sp<SkSurface> surface(SkSurface::MakeRasterN32Premul(80, 80));
32 sk_sp<SkSurface> surface(SkSurface::MakeRasterN32Premul(80, 80));
/external/skia/debugger/QT/
H A DSkDrawCommandGeometryWidget.h14 #include "SkSurface.h"
32 sk_sp<SkSurface> fSurface;
H A DSkRasterWidget.h12 #include "SkSurface.h"
35 sk_sp<SkSurface> fSurface;
/external/skia/example/
H A DHelloWorld.h13 #include "SkSurface.h"
36 sk_sp<SkSurface> makeSurface() override {
43 fRasterSurface = SkSurface::MakeRaster(info, &props);
64 sk_sp<SkSurface> fRasterSurface;
66 sk_sp<SkSurface> fGpuSurface;
/external/skia/tools/viewer/sk_app/mac/
H A DRasterWindowContext_mac.cpp36 sk_sp<SkSurface> getBackbufferSurface() override;
46 sk_sp<SkSurface> fBackbufferSurface;
93 fBackbufferSurface = SkSurface::MakeRaster(info);
105 sk_sp<SkSurface> RasterWindowContext_mac::getBackbufferSurface() { return fBackbufferSurface; }
112 sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface();
/external/skia/gm/
H A Dimagemasksubset.cpp14 #include "SkSurface.h"
22 sk_sp<SkImage> make_mask(const sk_sp<SkSurface>& surface) {
38 make_mask(SkSurface::MakeRasterDirect(surfaceInfo, pixels, rowBytes));
50 return make_mask(SkSurface::MakeRaster(info));
55 sk_sp<SkSurface> surface;
57 surface = SkSurface::MakeRenderTarget(c->getGrContext(), SkBudgeted::kNo, info);
59 return make_mask(surface ? surface : SkSurface::MakeRaster(info));
H A Dbug6783.cpp9 #include "SkSurface.h"
27 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(100, 100);
H A Dfatpathfill.cpp12 #include "SkSurface.h"
19 static sk_sp<SkSurface> new_surface(int width, int height) {
20 return SkSurface::MakeRasterN32Premul(width, height);
35 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& path) {
/external/skia/tools/viewer/sk_app/android/
H A DRasterWindowContext_android.cpp11 #include "SkSurface.h"
22 sk_sp<SkSurface> getBackbufferSurface() override;
31 sk_sp<SkSurface> fBackbufferSurface = nullptr;
74 sk_sp<SkSurface> RasterWindowContext_android::getBackbufferSurface() {
82 fBackbufferSurface = SkSurface::MakeRasterDirect(
/external/skia/dm/
H A DDMGpuSupport.h14 #include "SkSurface.h"
31 static inline sk_sp<SkSurface> NewGpuSurface(
40 return SkSurface::MakeRenderTarget(grFactory->get(type, overrides), SkBudgeted::kNo,
97 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*,
/external/skia/tools/skiaserve/
H A DRequest.h20 #include "SkSurface.h"
72 SkSurface* createCPUSurface();
73 SkSurface* createGPUSurface();
79 sk_sp<SkSurface> fSurface;

Completed in 240 milliseconds

12345678