/external/skia/src/gpu/ |
GrOnFlushResourceProvider.h | 44 SkTArray<sk_sp<GrRenderTargetContext>>* results) = 0; 71 sk_sp<GrRenderTargetContext> makeRenderTargetContext(const GrSurfaceDesc&, 72 sk_sp<SkColorSpace>, 75 sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>, 76 sk_sp<SkColorSpace>, 82 sk_sp<GrBuffer> makeBuffer(GrBufferType, size_t, const void* data = nullptr); 85 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType, size_t, const void* data,
|
/external/skia/src/gpu/ops/ |
GrLatticeOp.h | 24 std::unique_ptr<GrDrawOp> MakeNonAA(GrPaint&&, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy>, 25 sk_sp<GrColorSpaceXform>, GrSamplerState::Filter,
|
/external/skia/src/pdf/ |
SkPDFBitmap.h | 22 sk_sp<SkPDFObject> SkPDFCreateBitmapObject(sk_sp<SkImage>, int encodingQuality = 101);
|
/external/skia/tests/ |
SpecialImageTest.cpp | 57 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, 74 sk_sp<GrTextureProxy> proxy(img->asTextureProxyRef(context)); 94 sk_sp<SkSpecialSurface> surf(img->makeSurface(outProps, SkISize::Make(kFullSize, kFullSize), 121 sk_sp<SkImage> tightImg(img->asImage(&newSubset)); 131 sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size())); 145 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( 152 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); 157 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); 165 sk_sp<SkImage> fullImage(SkImage::MakeFromBitmap(bm)); 167 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage [all...] |
AnnotationTest.cpp | 45 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); 55 sk_sp<SkDocument> doc(SkDocument::MakePDF(&outStream)); 61 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); 65 sk_sp<SkData> out = outStream.detachAsData(); 74 sk_sp<SkDocument> doc(SkDocument::MakePDF(&outStream)); 79 sk_sp<SkData> data(SkData::MakeWithCString("example")); 83 sk_sp<SkData> out = outStream.detachAsData(); 102 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); 106 sk_sp<SkData> out = outStream.detachAsData(); 121 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com/#NamedDestination")) [all...] |
/external/skqp/experimental/sksg/ |
SkSGEffectNode.h | 23 explicit EffectNode(sk_sp<RenderNode>); 31 sk_sp<RenderNode> fChild;
|
/external/skqp/experimental/sksg/paint/ |
SkSGColor.h | 22 static sk_sp<Color> Make(SkColor c) { return sk_sp<Color>(new Color(c)); }
|
/external/skqp/experimental/svg/model/ |
SkSVGContainer.h | 18 void appendChild(sk_sp<SkSVGNode>) override; 30 SkSTArray<1, sk_sp<SkSVGNode>, true> fChildren;
|
/external/skqp/src/gpu/ |
GrOnFlushResourceProvider.h | 44 SkTArray<sk_sp<GrRenderTargetContext>>* results) = 0; 72 sk_sp<GrRenderTargetContext> makeRenderTargetContext(const GrSurfaceDesc& desc, 73 sk_sp<SkColorSpace> colorSpace, 78 sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy> proxy, 79 sk_sp<SkColorSpace> colorSpace, 83 sk_sp<GrBuffer> makeBuffer(GrBufferType, size_t, const void* data = nullptr); 86 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType, size_t, const void* data,
|
GrResourceProvider.cpp | 75 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 90 sk_sp<GrTexture> tex(fGpu->createTexture(desc, budgeted, texels, mipLevelCount)); 98 sk_sp<GrTexture> GrResourceProvider::getExactScratch(const GrSurfaceDesc& desc, 100 sk_sp<GrTexture> tex(this->refScratchTexture(desc, flags)); 118 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, 143 sk_sp<GrTextureProxy> proxy = proxyProvider->createInstantiatedProxy(desc, 147 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( 160 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 171 sk_sp<GrTexture> tex = this->getExactScratch(desc, budgeted, flags); 179 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(const GrSurfaceDesc& desc [all...] |
GrProxyProvider.cpp | 30 sk_sp<const GrCaps> caps, 94 sk_sp<GrTextureProxy> GrProxyProvider::findProxyByUniqueKey(const GrUniqueKey& key, 102 sk_sp<GrTextureProxy> result = sk_ref_sp(fUniquelyKeyedProxies.find(key)); 109 sk_sp<GrTextureProxy> GrProxyProvider::createWrapped(sk_sp<GrTexture> tex, GrSurfaceOrigin origin) { 117 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), origin)); 119 return sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), origin)); 123 sk_sp<GrTextureProxy> GrProxyProvider::findOrCreateProxyByUniqueKey(const GrUniqueKey& key, 131 sk_sp<GrTextureProxy> result = this->findProxyByUniqueKey(key, origin); 145 sk_sp<GrTexture> texture(static_cast<GrSurface*>(resource)->asTexture()) [all...] |
GrProxyProvider.h | 28 GrProxyProvider(GrResourceProvider*, GrResourceCache*, sk_sp<const GrCaps>, GrSingleOwner*); 53 sk_sp<GrTextureProxy> findProxyByUniqueKey(const GrUniqueKey&, GrSurfaceOrigin); 59 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const GrUniqueKey&, GrSurfaceOrigin); 67 sk_sp<GrTextureProxy> createInstantiatedProxy(const GrSurfaceDesc&, SkBackingFit, SkBudgeted, 75 sk_sp<GrTextureProxy> createTextureProxy(const GrSurfaceDesc&, SkBudgeted, 83 sk_sp<GrTextureProxy> createTextureProxy(sk_sp<SkImage> srcImage, 97 sk_sp<GrTextureProxy> createMipMapProxy(const GrSurfaceDesc&, SkBudgeted, 109 sk_sp<GrTextureProxy> createMipMapProxy(const GrSurfaceDesc&, SkBudgeted); 114 sk_sp<GrTextureProxy> createProxy(const GrSurfaceDesc&, SkBackingFit, SkBudgeted [all...] |
/external/skqp/src/pdf/ |
SkPDFBitmap.h | 22 sk_sp<SkPDFObject> SkPDFCreateBitmapObject(sk_sp<SkImage>, int encodingQuality = 101);
|
/external/skqp/tests/ |
SpecialImageTest.cpp | 57 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter, 74 sk_sp<GrTextureProxy> proxy(img->asTextureProxyRef(context)); 94 sk_sp<SkSpecialSurface> surf(img->makeSurface(outProps, SkISize::Make(kFullSize, kFullSize), 121 sk_sp<SkImage> tightImg(img->asImage(&newSubset)); 131 sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size())); 145 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromRaster( 152 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm)); 157 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset)); 165 sk_sp<SkImage> fullImage(SkImage::MakeFromBitmap(bm)); 167 sk_sp<SkSpecialImage> fullSImage(SkSpecialImage::MakeFromImage [all...] |
/external/skia/src/gpu/effects/ |
GrDistanceFieldGeoProc.h | 58 static sk_sp<GrGeometryProcessor> Make(const sk_sp<GrTextureProxy>* proxies, 62 return sk_sp<GrGeometryProcessor>(new GrDistanceFieldA8TextGeoProc( 66 static sk_sp<GrGeometryProcessor> Make(const sk_sp<GrTextureProxy>* proxies, 70 return sk_sp<GrGeometryProcessor>(new GrDistanceFieldA8TextGeoProc( 88 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 95 GrDistanceFieldA8TextGeoProc(const sk_sp<GrTextureProxy>* proxies, 130 static sk_sp<GrGeometryProcessor> Make(const SkMatrix& matrix, 131 const sk_sp<GrTextureProxy>* proxies [all...] |
/external/skqp/src/gpu/effects/ |
GrDistanceFieldGeoProc.h | 60 static sk_sp<GrGeometryProcessor> Make(const sk_sp<GrTextureProxy> proxies[kMaxTextures], 63 return sk_sp<GrGeometryProcessor>(new GrDistanceFieldA8TextGeoProc( 67 static sk_sp<GrGeometryProcessor> Make(const sk_sp<GrTextureProxy> proxies[kMaxTextures], 70 return sk_sp<GrGeometryProcessor>(new GrDistanceFieldA8TextGeoProc( 88 void addNewProxies(const sk_sp<GrTextureProxy> proxies[kMaxTextures], const GrSamplerState& p); 95 GrDistanceFieldA8TextGeoProc(const sk_sp<GrTextureProxy> proxies[kMaxTextures], 128 static sk_sp<GrGeometryProcessor> Make(const SkMatrix& matrix, 129 const sk_sp<GrTextureProxy> proxies[kMaxTextures] [all...] |
/external/skia/src/core/ |
SkMallocPixelRef.cpp | 47 sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info, 53 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr)); 57 sk_sp<SkPixelRef> SkMallocPixelRef::MakeUsing(void*(*allocProc)(size_t), 81 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, 85 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) { 89 sk_sp<SkPixelRef> SkMallocPixelRef::MakeZeroed(const SkImageInfo& info, 98 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithProc(const SkImageInfo& info, 109 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, proc, context)); 112 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info, 114 sk_sp<SkData> data) [all...] |
SkData.cpp | 61 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { 70 sk_sp<SkData> data(new (storage) SkData(length)); 81 sk_sp<SkData> SkData::MakeEmpty() { 94 sk_sp<SkData> SkData::MakeFromMalloc(const void* data, size_t length) { 95 return sk_sp<SkData>(new SkData(data, length, sk_free_releaseproc, nullptr)); 98 sk_sp<SkData> SkData::MakeWithCopy(const void* src, size_t length) { 103 sk_sp<SkData> SkData::MakeUninitialized(size_t length) { 107 sk_sp<SkData> SkData::MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx) { 108 return sk_sp<SkData>(new SkData(ptr, length, proc, ctx)); 117 sk_sp<SkData> SkData::MakeFromFILE(FILE* f) [all...] |
SkSpecialImage.cpp | 51 virtual sk_sp<GrTextureProxy> onAsTextureProxyRef(GrContext* context) const = 0; 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 56 virtual sk_sp<SkSpecialSurface> onMakeSurface(const SkImageFilter::OutputProperties& outProps, 59 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0; 61 virtual sk_sp<SkSurface> onMakeTightSurface(const SkImageFilter::OutputProperties& outProps, 81 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { 87 return curContext == context ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; 106 sk_sp<GrTextureProxy> proxy = GrMakeCachedBitmapProxy(proxyProvider, bmp); 148 sk_sp<GrTextureProxy> SkSpecialImage::asTextureProxyRef(GrContext* context) const { 153 sk_sp<SkSpecialSurface> SkSpecialImage::makeSurface(const SkImageFilter::OutputProperties& outProps [all...] |
/external/skia/src/effects/ |
SkMergeImageFilter.cpp | 18 sk_sp<SkImageFilter> SkMergeImageFilter::Make(sk_sp<SkImageFilter>* const filters, int count, 20 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); 25 SkMergeImageFilter::SkMergeImageFilter(sk_sp<SkImageFilter>* const filters, int count, 31 sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(SkSpecialImage* source, const Context& ctx, 41 std::unique_ptr<sk_sp<SkSpecialImage>[]> inputs(new sk_sp<SkSpecialImage>[inputCount]); 71 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size())); 97 sk_sp<SkImageFilter> SkMergeImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { 98 SkSTArray<5, sk_sp<SkImageFilter>> inputs(this->countInputs()) [all...] |
/external/skqp/src/core/ |
SkMallocPixelRef.cpp | 47 sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info, 53 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr)); 57 sk_sp<SkPixelRef> SkMallocPixelRef::MakeUsing(void*(*allocProc)(size_t), 81 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, 85 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) { 89 sk_sp<SkPixelRef> SkMallocPixelRef::MakeZeroed(const SkImageInfo& info, 98 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithProc(const SkImageInfo& info, 109 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, proc, context)); 112 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info, 114 sk_sp<SkData> data) [all...] |
SkData.cpp | 61 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { 70 sk_sp<SkData> data(new (storage) SkData(length)); 81 sk_sp<SkData> SkData::MakeEmpty() { 94 sk_sp<SkData> SkData::MakeFromMalloc(const void* data, size_t length) { 95 return sk_sp<SkData>(new SkData(data, length, sk_free_releaseproc, nullptr)); 98 sk_sp<SkData> SkData::MakeWithCopy(const void* src, size_t length) { 103 sk_sp<SkData> SkData::MakeUninitialized(size_t length) { 107 sk_sp<SkData> SkData::MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx) { 108 return sk_sp<SkData>(new SkData(ptr, length, proc, ctx)); 117 sk_sp<SkData> SkData::MakeFromFILE(FILE* f) [all...] |
SkSpecialImage.cpp | 51 virtual sk_sp<GrTextureProxy> onAsTextureProxyRef(GrContext* context) const = 0; 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 56 virtual sk_sp<SkSpecialSurface> onMakeSurface(const SkImageFilter::OutputProperties& outProps, 59 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0; 61 virtual sk_sp<SkSurface> onMakeTightSurface(const SkImageFilter::OutputProperties& outProps, 81 sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { 87 return curContext == context ? sk_sp<SkSpecialImage>(SkRef(this)) : nullptr; 105 sk_sp<GrTextureProxy> proxy = GrMakeCachedBitmapProxy(context->contextPriv().proxyProvider(), 148 sk_sp<GrTextureProxy> SkSpecialImage::asTextureProxyRef(GrContext* context) const { 153 sk_sp<SkSpecialSurface> SkSpecialImage::makeSurface(const SkImageFilter::OutputProperties& outProps [all...] |
/external/skqp/src/effects/ |
SkMergeImageFilter.cpp | 18 sk_sp<SkImageFilter> SkMergeImageFilter::Make(sk_sp<SkImageFilter>* const filters, int count, 20 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); 25 SkMergeImageFilter::SkMergeImageFilter(sk_sp<SkImageFilter>* const filters, int count, 31 sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(SkSpecialImage* source, const Context& ctx, 41 std::unique_ptr<sk_sp<SkSpecialImage>[]> inputs(new sk_sp<SkSpecialImage>[inputCount]); 71 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size())); 97 sk_sp<SkImageFilter> SkMergeImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { 98 SkSTArray<5, sk_sp<SkImageFilter>> inputs(this->countInputs()) [all...] |
/frameworks/base/libs/hwui/hwui/ |
Bitmap.h | 49 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap); 50 static sk_sp<Bitmap> allocateHeapBitmap(const SkImageInfo& info); 52 static sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& bitmap); 54 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap); 55 static sk_sp<Bitmap> allocateAshmemBitmap(size_t allocSize, const SkImageInfo& info, 58 static sk_sp<Bitmap> createFrom(sp<GraphicBuffer> graphicBuffer); 60 static sk_sp<Bitmap> createFrom(const SkImageInfo&, SkPixelRef&); 74 void setColorSpace(sk_sp<SkColorSpace> colorSpace); 106 sk_sp<SkImage> makeImage(sk_sp<SkColorFilter>* outputColorFilter) [all...] |