| /external/skia/gm/ |
| imagefiltersbase.cpp | 31 static sk_sp<SkImageFilter> Make() { 32 return sk_sp<SkImageFilter>(new FailImageFilter); 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 45 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { 55 sk_sp<SkFlattenable> FailImageFilter::CreateProc(SkReadBuffer& buffer) { 77 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> input) { 78 return sk_sp<SkImageFilter>(new IdentityImageFilter(std::move(input))); 85 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 90 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override [all...] |
| /external/skia/include/private/ |
| SkDeferredDisplayList.h | 33 SkDeferredDisplayList(const SkSurfaceCharacterization& characterization, sk_sp<SkImage> image) 58 sk_sp<LazyProxyData>); 71 sk_sp<SkImage> fImage; 75 SkTArray<sk_sp<GrOpList>> fOpLists; 77 sk_sp<LazyProxyData> fLazyProxyData;
|
| /external/skia/src/gpu/ |
| GrTextureMaker.h | 41 virtual sk_sp<GrTextureProxy> refOriginalTextureProxy(bool willBeMipped, 49 virtual sk_sp<SkColorSpace> getColorSpace(SkColorSpace* dstColorSpace) = 0; 61 virtual sk_sp<GrTextureProxy> generateTextureProxyForParams(const CopyParams&, 68 sk_sp<GrTextureProxy> onRefTextureProxyForParams(const GrSamplerState&, 70 sk_sp<SkColorSpace>* proxyColorSpace,
|
| GrResourceProvider.h | 52 sk_sp<T> findByUniqueKey(const GrUniqueKey& key) { 53 return sk_sp<T>(static_cast<T*>(this->findResourceByUniqueKey(key).release())); 65 sk_sp<GrTexture> createApproxTexture(const GrSurfaceDesc&, uint32_t flags); 69 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, uint32_t flags = 0); 71 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, 76 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, SkBackingFit, 90 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex, 98 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture& tex, 111 sk_sp<GrRenderTarget> wrapBackendRenderTarget(const GrBackendRenderTarget&); 125 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType intendedType, size_t size [all...] |
| /external/skia/src/gpu/effects/ |
| GrBitmapTextGeoProc.h | 25 static sk_sp<GrGeometryProcessor> Make(GrColor color, 26 const sk_sp<GrTextureProxy>* proxies, 30 return sk_sp<GrGeometryProcessor>( 48 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 57 GrBitmapTextGeoProc(GrColor, const sk_sp<GrTextureProxy>* proxies, int numProxies,
|
| /external/skqp/gm/ |
| encode.cpp | 33 sk_sp<SkData> pngData(sk_tool_utils::EncodeImageToData(orig, SkEncodedImageFormat::kPNG, 100)); 34 sk_sp<SkData> jpegData(sk_tool_utils::EncodeImageToData(orig, SkEncodedImageFormat::kJPEG, 100)); 36 sk_sp<SkImage> pngImage = SkImage::MakeFromEncoded(pngData); 37 sk_sp<SkImage> jpegImage = SkImage::MakeFromEncoded(jpegData); 56 static sk_sp<SkImage> imgs[8];
|
| imagefiltersbase.cpp | 31 static sk_sp<SkImageFilter> Make() { 32 return sk_sp<SkImageFilter>(new FailImageFilter); 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 45 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { 55 sk_sp<SkFlattenable> FailImageFilter::CreateProc(SkReadBuffer& buffer) { 77 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> input) { 78 return sk_sp<SkImageFilter>(new IdentityImageFilter(std::move(input))); 85 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 90 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override [all...] |
| /external/skqp/include/private/ |
| SkDeferredDisplayList.h | 33 SkDeferredDisplayList(const SkSurfaceCharacterization& characterization, sk_sp<SkImage> image) 58 sk_sp<LazyProxyData>); 71 sk_sp<SkImage> fImage; 75 SkTArray<sk_sp<GrOpList>> fOpLists; 77 sk_sp<LazyProxyData> fLazyProxyData;
|
| /external/skqp/src/gpu/ |
| GrTextureAdjuster.h | 25 sk_sp<GrTextureProxy> refTextureProxySafeForParams(const GrSamplerState&, 38 GrTextureAdjuster(GrContext*, sk_sp<GrTextureProxy>, SkAlphaType, uint32_t uniqueID, 48 sk_sp<GrTextureProxy> originalProxyRef() const { return fOriginal; } 52 sk_sp<GrTextureProxy> fOriginal; 57 sk_sp<GrTextureProxy> refTextureProxyCopy(const CopyParams ©Params, bool willBeMipped);
|
| GrResourceProvider.h | 50 sk_sp<T> findByUniqueKey(const GrUniqueKey& key) { 51 return sk_sp<T>(static_cast<T*>(this->findResourceByUniqueKey(key).release())); 63 sk_sp<GrTexture> createApproxTexture(const GrSurfaceDesc&, uint32_t flags); 67 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, uint32_t flags = 0); 69 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, 74 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel&); 87 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex, 95 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture& tex, 108 sk_sp<GrRenderTarget> wrapBackendRenderTarget(const GrBackendRenderTarget&); 122 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType intendedType, size_t size [all...] |
| /external/skqp/src/gpu/effects/ |
| GrBitmapTextGeoProc.h | 26 static sk_sp<GrGeometryProcessor> Make(GrColor color, 27 const sk_sp<GrTextureProxy> proxies[kMaxTextures], 30 return sk_sp<GrGeometryProcessor>( 48 void addNewProxies(const sk_sp<GrTextureProxy> proxies[kMaxTextures], const GrSamplerState& p); 55 GrBitmapTextGeoProc(GrColor, const sk_sp<GrTextureProxy> proxies[kMaxTextures],
|
| /external/skqp/tests/ |
| SpecialSurfaceTest.cpp | 33 static void test_surface(const sk_sp<SkSpecialSurface>& surf, 48 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); 61 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info)); 73 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm)); 83 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRenderTarget(ctxInfo.grContext(),
|
| RefCntTest.cpp | 115 static sk_sp<Effect> Create() { 121 sk_sp<Effect> fEffect; 123 const sk_sp<Effect>& get() const { return fEffect; } 125 void set(sk_sp<Effect> value) { 133 static sk_sp<EffectImpl> Create() { 134 return sk_sp<EffectImpl>(new EffectImpl); 138 static sk_sp<Effect> make_effect() { 150 DEF_TEST(sk_sp, reporter) { 200 // Test sk_sp::operator-> 204 // Test sk_sp::operator [all...] |
| LazyProxyTest.cpp | 44 SkTArray<sk_sp<GrRenderTargetContext>>*) override { 63 return sk_sp<GrTexture>(); 69 return sk_sp<GrTexture>(); 76 sk_sp<GrTexture> texture = rp->createTexture(desc, SkBudgeted::kYes); 105 sk_sp<GrTextureProxy> fProxy; 118 return sk_sp<GrTexture>(); 143 sk_sp<GrTextureProxy> fLazyProxy; 184 sk_sp<GrContext> ctx = GrContext::MakeMock(&mockOptions, GrContextOptions()); 189 sk_sp<GrRenderTargetContext> rtc = 193 sk_sp<GrRenderTargetContext> mockAtlas [all...] |
| /frameworks/base/libs/hwui/tests/common/ |
| BitmapAllocationTestUtils.h | 30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height, SkColorType colorType, 32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); 39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height, SkColorType colorType, 44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap)); 49 typedef sk_sp<Bitmap> (*BitmapAllocator)(int, int, SkColorType,
|
| /external/skia/include/effects/ |
| SkGradientShader.h | 41 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 45 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 63 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 64 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 67 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 68 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 86 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 90 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 109 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 110 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace [all...] |
| /external/skia/tests/ |
| RefCntTest.cpp | 115 static sk_sp<Effect> Create() { 121 sk_sp<Effect> fEffect; 123 const sk_sp<Effect>& get() const { return fEffect; } 125 void set(sk_sp<Effect> value) { 133 static sk_sp<EffectImpl> Create() { 134 return sk_sp<EffectImpl>(new EffectImpl); 138 static sk_sp<Effect> make_effect() { 150 DEF_TEST(sk_sp, reporter) { 200 // Test sk_sp::operator-> 204 // Test sk_sp::operator [all...] |
| /external/skqp/include/effects/ |
| SkGradientShader.h | 41 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 45 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 63 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 64 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 67 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], 68 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 86 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 90 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 109 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, 110 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace [all...] |
| /external/skia/src/image/ |
| SkImage_Gpu.cpp | 45 sk_sp<GrTextureProxy> proxy, 46 sk_sp<SkColorSpace> colorSpace, SkBudgeted budgeted) 98 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( 116 sk_sp<GrTextureProxy> SkImage_Gpu::asTextureProxyRef(GrContext* context, 119 sk_sp<SkColorSpace>* texColorSpace, 232 sk_sp<SkColorSpace> surfaceColorSpace = fColorSpace; 244 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( 268 sk_sp<SkImage> SkImage_Gpu::onMakeSubset(const SkIRect& subset) const { 275 sk_sp<GrSurfaceContext> sContext(fContext->contextPriv().makeDeferredSurfaceContext( 296 static sk_sp<SkImage> new_wrapped_texture_common(GrContext* ctx [all...] |
| SkImage_Raster.cpp | 74 SkImage_Raster(const SkImageInfo&, sk_sp<SkData>, size_t rb, 90 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerState&, SkColorSpace*, 91 sk_sp<SkColorSpace>*, 96 sk_sp<SkImage> onMakeSubset(const SkIRect&) const override; 111 sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>, SkColorType, 117 sk_sp<GrTextureProxy> refPinnedTextureProxy(uint32_t* uniqueID) const override; 126 mutable sk_sp<GrTextureProxy> fPinnedProxy; 141 SkImage_Raster::SkImage_Raster(const Info& info, sk_sp<SkData> data, size_t rowBytes, uint32_t id) 172 sk_sp<GrTextureProxy> SkImage_Raster::asTextureProxyRef(GrContext* context [all...] |
| SkSurface.cpp | 156 sk_sp<SkImage> SkSurface::makeImageSnapshot() { 160 sk_sp<SkSurface> SkSurface::makeSurface(const SkImageInfo& info) { 255 sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) override { 258 sk_sp<SkImage> onNewImageSnapshot() override { return nullptr; } 264 sk_sp<SkSurface> SkSurface::MakeNull(int width, int height) { 268 return sk_sp<SkSurface>(new SkNullSurface(width, height)); 275 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&, int, 280 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTexture&, 282 sk_sp<SkColorSpace>, const SkSurfaceProps*) { 286 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTexture& [all...] |
| /external/skqp/src/image/ |
| SkImage_Raster.cpp | 74 SkImage_Raster(const SkImageInfo&, sk_sp<SkData>, size_t rb, 90 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerState&, SkColorSpace*, 91 sk_sp<SkColorSpace>*, 96 sk_sp<SkImage> onMakeSubset(const SkIRect&) const override; 111 sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>, SkColorType, 117 sk_sp<GrTextureProxy> refPinnedTextureProxy(uint32_t* uniqueID) const override; 126 mutable sk_sp<GrTextureProxy> fPinnedProxy; 141 SkImage_Raster::SkImage_Raster(const Info& info, sk_sp<SkData> data, size_t rowBytes, uint32_t id) 172 sk_sp<GrTextureProxy> SkImage_Raster::asTextureProxyRef(GrContext* context [all...] |
| SkSurface.cpp | 156 sk_sp<SkImage> SkSurface::makeImageSnapshot() { 160 sk_sp<SkSurface> SkSurface::makeSurface(const SkImageInfo& info) { 231 sk_sp<SkSurface> onNewSurface(const SkImageInfo& info) override { 234 sk_sp<SkImage> onNewImageSnapshot() override { return nullptr; } 239 sk_sp<SkSurface> SkSurface::MakeNull(int width, int height) { 243 return sk_sp<SkSurface>(new SkNullSurface(width, height)); 250 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&, int, 255 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTexture&, 257 sk_sp<SkColorSpace>, const SkSurfaceProps*) { 261 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTexture& [all...] |
| /external/skia/src/effects/ |
| SkXfermodeImageFilter.cpp | 34 SkXfermodeImageFilter_Base(SkBlendMode mode, sk_sp<SkImageFilter> inputs[2], 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 43 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override; 48 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 49 sk_sp<SkSpecialImage> background, 51 sk_sp<SkSpecialImage> foreground, 66 static sk_sp<SkFlattenable> LegacyArithmeticCreateProc(SkReadBuffer& buffer); 77 sk_sp<SkImageFilter> SkXfermodeImageFilter::Make(SkBlendMode mode, 78 sk_sp<SkImageFilter> background, 79 sk_sp<SkImageFilter> foreground [all...] |
| /external/skqp/src/effects/ |
| SkXfermodeImageFilter.cpp | 34 SkXfermodeImageFilter_Base(SkBlendMode mode, sk_sp<SkImageFilter> inputs[2], 41 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, 43 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override; 48 sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source, 49 sk_sp<SkSpecialImage> background, 51 sk_sp<SkSpecialImage> foreground, 66 static sk_sp<SkFlattenable> LegacyArithmeticCreateProc(SkReadBuffer& buffer); 77 sk_sp<SkImageFilter> SkXfermodeImageFilter::Make(SkBlendMode mode, 78 sk_sp<SkImageFilter> background, 79 sk_sp<SkImageFilter> foreground [all...] |