Flutter Engine
The Flutter Engine
Functions
SkMipmapAccessor.cpp File Reference
#include "src/core/SkMipmapAccessor.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/base/SkArenaAlloc.h"
#include "src/core/SkBitmapCache.h"
#include "src/core/SkMipmap.h"
#include "src/image/SkImage_Base.h"

Go to the source code of this file.

Functions

static sk_sp< const SkMipmaptry_load_mips (const SkImage_Base *image)
 

Function Documentation

◆ try_load_mips()

static sk_sp< const SkMipmap > try_load_mips ( const SkImage_Base image)
static

Definition at line 24 of file SkMipmapAccessor.cpp.

24 {
25 sk_sp<const SkMipmap> mips = image->refMips();
26 if (!mips) {
28 }
29 if (!mips) {
31 }
32 return mips;
33}
static const SkMipmap * AddAndRef(const SkImage_Base *, SkResourceCache *localCache=nullptr)
static const SkMipmap * FindAndRef(const SkBitmapCacheDesc &, SkResourceCache *localCache=nullptr)
void reset(T *ptr=nullptr)
Definition: SkRefCnt.h:310
sk_sp< const SkImage > image
Definition: SkRecords.h:269
static SkBitmapCacheDesc Make(const SkImage *)