Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
SkImageGanesh.h File Reference
#include "include/core/SkImage.h"
#include "include/core/SkRefCnt.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/GrTypes.h"
#include "include/private/base/SkAPI.h"
#include <functional>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  SkImages
 

Typedefs

using SkImages::BackendTextureReleaseProc = std::function< void(GrBackendTexture)>
 
using SkImages::TextureReleaseProc = void(*)(ReleaseContext)
 

Functions

SK_API sk_sp< SkImageSkImages::AdoptTextureFrom (GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin textureOrigin, SkColorType colorType)
 
SK_API sk_sp< SkImageSkImages::AdoptTextureFrom (GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin textureOrigin, SkColorType colorType, SkAlphaType alphaType)
 
SK_API sk_sp< SkImageSkImages::AdoptTextureFrom (GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin textureOrigin, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
 
SK_API sk_sp< SkImageSkImages::BorrowTextureFrom (GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin origin, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
 
SK_API sk_sp< SkImageSkImages::CrossContextTextureFromPixmap (GrDirectContext *context, const SkPixmap &pixmap, bool buildMips, bool limitToMaxTextureSize=false)
 
SK_API sk_sp< SkImageSkImages::TextureFromCompressedTexture (GrRecordingContext *context, const GrBackendTexture &backendTexture, GrSurfaceOrigin origin, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
 
SK_API sk_sp< SkImageSkImages::TextureFromCompressedTextureData (GrDirectContext *direct, sk_sp< SkData > data, int width, int height, SkTextureCompressionType type, skgpu::Mipmapped mipmapped=skgpu::Mipmapped::kNo, GrProtected isProtected=GrProtected::kNo)
 
SK_API sk_sp< SkImageSkImages::TextureFromImage (GrDirectContext *, const SkImage *, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Budgeted=skgpu::Budgeted::kYes)
 
sk_sp< SkImageSkImages::TextureFromImage (GrDirectContext *ctx, const sk_sp< const SkImage > &img, skgpu::Mipmapped m=skgpu::Mipmapped::kNo, skgpu::Budgeted b=skgpu::Budgeted::kYes)
 
SK_API sk_sp< SkImageSkImages::TextureFromYUVAPixmaps (GrRecordingContext *context, const SkYUVAPixmaps &pixmaps, skgpu::Mipmapped buildMips, bool limitToMaxTextureSize, sk_sp< SkColorSpace > imageColorSpace)
 
SK_API sk_sp< SkImageSkImages::TextureFromYUVAPixmaps (GrRecordingContext *context, const SkYUVAPixmaps &pixmaps, skgpu::Mipmapped buildMips=skgpu::Mipmapped::kNo, bool limitToMaxTextureSize=false)
 
SK_API sk_sp< SkImageSkImages::TextureFromYUVATextures (GrRecordingContext *context, const GrYUVABackendTextures &yuvaTextures, sk_sp< SkColorSpace > imageColorSpace, TextureReleaseProc textureReleaseProc=nullptr, ReleaseContext releaseContext=nullptr)
 
SK_API sk_sp< SkImageSkImages::TextureFromYUVATextures (GrRecordingContext *context, const GrYUVABackendTextures &yuvaTextures)
 
SK_API bool SkImages::GetBackendTextureFromImage (const SkImage *img, GrBackendTexture *outTexture, bool flushPendingGrContextIO, GrSurfaceOrigin *origin=nullptr)
 
bool SkImages::GetBackendTextureFromImage (const sk_sp< const SkImage > &img, GrBackendTexture *outTexture, bool flushPendingGrContextIO, GrSurfaceOrigin *origin=nullptr)
 
SK_API bool SkImages::MakeBackendTextureFromImage (GrDirectContext *context, sk_sp< SkImage > image, GrBackendTexture *backendTexture, BackendTextureReleaseProc *backendTextureReleaseProc)
 
bool SkImages::GetBackendTextureFromImage (GrDirectContext *context, sk_sp< SkImage > image, GrBackendTexture *backendTexture, BackendTextureReleaseProc *backendTextureReleaseProc)
 
SK_API sk_sp< SkImageSkImages::SubsetTextureFrom (GrDirectContext *context, const SkImage *img, const SkIRect &subset)
 
SK_API sk_sp< SkImageSkImages::MakeWithFilter (GrRecordingContext *context, sk_sp< SkImage > src, const SkImageFilter *filter, const SkIRect &subset, const SkIRect &clipBounds, SkIRect *outSubset, SkIPoint *offset)