Flutter Engine
The Flutter Engine
Classes | Functions
SkBitmapCache.h File Reference
#include "include/core/SkRect.h"
#include "include/private/base/SkAssert.h"
#include <cstdint>
#include <memory>

Go to the source code of this file.

Classes

struct  SkBitmapCacheDesc
 
class  SkBitmapCache
 
struct  SkBitmapCache::RecDeleter
 
class  SkMipmapCache
 

Functions

uint64_t SkMakeResourceCacheSharedIDForBitmap (uint32_t bitmapGenID)
 
void SkNotifyBitmapGenIDIsStale (uint32_t bitmapGenID)
 

Function Documentation

◆ SkMakeResourceCacheSharedIDForBitmap()

uint64_t SkMakeResourceCacheSharedIDForBitmap ( uint32_t  bitmapGenID)

Use this for bitmapcache and mipmapcache entries.

Definition at line 32 of file SkBitmapCache.cpp.

32 {
33 uint64_t sharedID = SkSetFourByteTag('b', 'm', 'a', 'p');
34 return (sharedID << 32) | bitmapGenID;
35}
static constexpr SkFourByteTag SkSetFourByteTag(char a, char b, char c, char d)
Definition: SkTypes.h:167

◆ SkNotifyBitmapGenIDIsStale()

void SkNotifyBitmapGenIDIsStale ( uint32_t  bitmapGenID)

Definition at line 37 of file SkBitmapCache.cpp.

37 {
39}
uint64_t SkMakeResourceCacheSharedIDForBitmap(uint32_t bitmapGenID)
static void PostPurgeSharedID(uint64_t sharedID)