Flutter Engine
The Flutter Engine
Namespaces | Functions
TextureUtils.h File Reference
#include "include/core/SkImage.h"
#include "include/core/SkRefCnt.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/graphite/Image.h"
#include "src/gpu/graphite/TextureProxyView.h"
#include <functional>
#include <tuple>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 
namespace  skif
 

Functions

std::tuple< TextureProxyView, SkColorTypeskgpu::graphite::MakeBitmapProxyView (Recorder *recorder, const SkBitmap &bitmap, sk_sp< SkMipmap > mipmapsIn, Mipmapped mipmapped, Budgeted budgeted, std::string_view label)
 
sk_sp< TextureProxy > skgpu::graphite::MakePromiseImageLazyProxy (const Caps *, SkISize dimensions, TextureInfo, Volatile, sk_sp< skgpu::RefCntedCallback > releaseHelper, SkImages::GraphitePromiseTextureFulfillProc, SkImages::GraphitePromiseTextureFulfillContext, SkImages::GraphitePromiseTextureReleaseProc, std::string_view label)
 
sk_sp< SkImageskgpu::graphite::MakeFromBitmap (Recorder *recorder, const SkColorInfo &colorInfo, const SkBitmap &bitmap, sk_sp< SkMipmap > mipmaps, Budgeted budgeted, SkImage::RequiredProperties requiredProps, std::string_view label)
 
size_t skgpu::graphite::ComputeSize (SkISize dimensions, const TextureInfo &info)
 
sk_sp< Image > skgpu::graphite::CopyAsDraw (Recorder *recorder, const SkImage *image, const SkIRect &subset, const SkColorInfo &dstColorInfo, Budgeted budgeted, Mipmapped mipmapped, SkBackingFit backingFit, std::string_view label)
 
sk_sp< SkImageskgpu::graphite::RescaleImage (Recorder *recorder, const SkImage *srcImage, SkIRect srcIRect, const SkImageInfo &dstInfo, SkImage::RescaleGamma rescaleGamma, SkImage::RescaleMode rescaleMode)
 
bool skgpu::graphite::GenerateMipmaps (Recorder *recorder, sk_sp< TextureProxy > texture, const SkColorInfo &colorInfo)
 
TextureProxyView skgpu::graphite::AsView (const SkImage *image)
 
TextureProxyView skgpu::graphite::AsView (sk_sp< SkImage > image)
 
std::pair< sk_sp< SkImage >, SkSamplingOptionsskgpu::graphite::GetGraphiteBacked (Recorder *recorder, const SkImage *imageIn, SkSamplingOptions sampling)
 
SkColorType skgpu::graphite::ComputeShaderCoverageMaskTargetFormat (const Caps *caps)
 
sk_sp< Backend > skif::MakeGraphiteBackend (skgpu::graphite::Recorder *recorder, const SkSurfaceProps &surfaceProps, SkColorType colorType)