/frameworks/base/libs/hwui/pipeline/skia/ |
SkiaLayer.h | 19 #include <SkSurface.h> 31 sk_sp<SkSurface> layerSurface;
|
VectorDrawableAtlas.h | 20 #include <SkSurface.h> 36 sk_sp<SkSurface> surface; 46 * except during a renderFrame call. VectorDrawable does not contain a pointer to atlas SkSurface 52 * VectorDrawableAtlas tries to fit VDs in the atlas SkSurface. If there is not enough space in 115 const sk_sp<SkSurface>& newSurface) 133 sk_sp<SkSurface> surface; 144 sk_sp<SkSurface> mSurface; 185 sk_sp<SkSurface> createSurface(int width, int height, GrContext* context);
|
/external/skia/src/image/ |
SkSurface.cpp | 119 static SkSurface_Base* asSB(SkSurface* surface) { 125 SkSurface::SkSurface(int width, int height, const SkSurfaceProps* props) 133 SkSurface::SkSurface(const SkImageInfo& info, const SkSurfaceProps* props) 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> SkSurface::makeSurface(const SkImageInfo& info) [all...] |
SkSurface_Gpu.cpp | 35 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> SkSurface::MakeRenderTarget(GrContext* ctx, SkBudgeted budgeted [all...] |
SkSurface_Base.h | 13 #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;
|
/frameworks/base/libs/hwui/ |
VkLayer.cpp | 22 #include <SkSurface.h> 28 sk_sp<SkSurface> surface; 30 surface = SkSurface::MakeRenderTarget(mRenderState.getGrContext(), SkBudgeted::kNo, info);
|
/external/skia/tests/ |
skbug5221.cpp | 10 #include "SkSurface.h" 22 sk_sp<SkSurface> surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(256, 256))); 28 sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(
|
ImageNewShaderTest.cpp | 11 #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::MakeRaster(info)) [all...] |
GrTextureMipMapInvalidationTest.cpp | 17 #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);
|
skbug6389.cpp | 12 #include "SkSurface.h" 16 auto s = SkSurface::MakeRasterN32Premul(100, 100);
|
SurfaceTest.cpp | 18 #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::MakeRaster(info)) [all...] |
/external/skia/include/core/ |
SkSurface.h | 23 * 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 { 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. The kRenderTarget fla [all...] |
/external/skia/experimental/SkV8Example/ |
SkV8Example.h | 18 class SkSurface; 32 SkSurface* createSurface() override; 49 SkSurface* fCurSurface;
|
/external/skia/example/ |
HelloWorld.h | 13 #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/ |
GLWindowContext.h | 15 #include "SkSurface.h" 25 sk_sp<SkSurface> getBackbufferSurface() override; 54 sk_sp<SkSurface> fSurface;
|
WindowContext.h | 16 class SkSurface; 32 virtual sk_sp<SkSurface> getBackbufferSurface() = 0;
|
/external/skia/bench/ |
ClipMaskBench.cpp | 15 #include "SkSurface.h" 50 sk_sp<SkSurface> surface = SkSurface::MakeRaster(SkImageInfo::MakeA8(size, size)); 56 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(size, size);
|
ImageBench.cpp | 11 #include "SkSurface.h" 40 fRasterSurface = SkSurface::MakeRaster(n32Info); 61 sk_sp<SkSurface> fRasterSurface;
|
/external/skia/debugger/QT/ |
SkDrawCommandGeometryWidget.h | 14 #include "SkSurface.h" 32 sk_sp<SkSurface> fSurface;
|
SkRasterWidget.h | 12 #include "SkSurface.h" 35 sk_sp<SkSurface> fSurface;
|
SkGLWidget.h | 50 sk_sp<SkSurface> fGpuSurface;
|
/external/skia/tools/viewer/sk_app/mac/ |
RasterWindowContext_mac.cpp | 36 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/ |
imagemasksubset.cpp | 14 #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));
|
bug6783.cpp | 9 #include "SkSurface.h" 27 sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(100, 100);
|
/external/skia/tools/viewer/sk_app/android/ |
RasterWindowContext_android.cpp | 11 #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(
|