Flutter Engine
The Flutter Engine
|
#include "src/shaders/SkImageShader.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkColorType.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkTileMode.h"
#include "include/private/base/SkMath.h"
#include "modules/skcms/skcms.h"
#include "src/base/SkArenaAlloc.h"
#include "src/core/SkBitmapProcState.h"
#include "src/core/SkColorSpaceXformSteps.h"
#include "src/core/SkEffectPriv.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/core/SkImagePriv.h"
#include "src/core/SkMipmapAccessor.h"
#include "src/core/SkPicturePriv.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkRasterPipelineOpContexts.h"
#include "src/core/SkRasterPipelineOpList.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkSamplingPriv.h"
#include "src/core/SkWriteBuffer.h"
#include "src/image/SkImage_Base.h"
#include <optional>
#include <tuple>
#include <utility>
Go to the source code of this file.
Namespaces | |
namespace | SkShaders |
Enumerations | |
enum class | LegacyFilterEnum { kNone , kLow , kMedium , kHigh , kInheritFromPaint , kUseFilterOptions , kUseCubicResampler , kLast = kUseCubicResampler } |
Functions | |
static SkTileMode | optimize (SkTileMode tm, int dimension) |
sk_sp< SkShader > | SkMakeBitmapShaderForPaint (const SkPaint &paint, const SkBitmap &src, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &sampling, const SkMatrix *localMatrix, SkCopyPixelsMode mode) |
SkRect | SkModifyPaintAndDstForDrawImageRect (const SkImage *image, const SkSamplingOptions &sampling, SkRect src, SkRect dst, bool strictSrcSubset, SkPaint *paint) |
static SkSamplingOptions | tweak_sampling (SkSamplingOptions sampling, const SkMatrix &matrix) |
SK_API sk_sp< SkShader > | SkShaders::Image (sk_sp< SkImage > image, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &options, const SkMatrix *localMatrix=nullptr) |
SK_API sk_sp< SkShader > | SkShaders::RawImage (sk_sp< SkImage > image, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &options, const SkMatrix *localMatrix=nullptr) |
|
strong |
Enumerator | |
---|---|
kNone | |
kLow | |
kMedium | |
kHigh | |
kInheritFromPaint | |
kUseFilterOptions | |
kUseCubicResampler | |
kLast |
Definition at line 116 of file SkImageShader.cpp.
|
static |
We are faster in clamp, so always use that tiling when we can.
Definition at line 76 of file SkImageShader.cpp.
sk_sp< SkShader > SkMakeBitmapShaderForPaint | ( | const SkPaint & | paint, |
const SkBitmap & | src, | ||
SkTileMode | tmx, | ||
SkTileMode | tmy, | ||
const SkSamplingOptions & | sampling, | ||
const SkMatrix * | localMatrix, | ||
SkCopyPixelsMode | mode | ||
) |
Definition at line 358 of file SkImageShader.cpp.
SkRect SkModifyPaintAndDstForDrawImageRect | ( | const SkImage * | image, |
const SkSamplingOptions & | sampling, | ||
SkRect | src, | ||
SkRect | dst, | ||
bool | strictSrcSubset, | ||
SkPaint * | paint | ||
) |
Definition at line 376 of file SkImageShader.cpp.
|
static |
Definition at line 495 of file SkImageShader.cpp.