Flutter Engine
The Flutter Engine
Functions
GrGpuResource.cpp File Reference
#include "src/gpu/ganesh/GrGpuResource.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/GrDirectContext.h"
#include "include/private/base/SkDebug.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpu.h"
#include "src/gpu/ganesh/GrGpuResourcePriv.h"
#include "src/gpu/ganesh/GrResourceCache.h"
#include <atomic>

Go to the source code of this file.

Functions

static GrResourceCacheget_resource_cache (GrGpu *gpu)
 

Function Documentation

◆ get_resource_cache()

static GrResourceCache * get_resource_cache ( GrGpu gpu)
inlinestatic

Definition at line 20 of file GrGpuResource.cpp.

20 {
21 SkASSERT(gpu);
22 SkASSERT(gpu->getContext());
24 return gpu->getContext()->priv().getResourceCache();
25}
#define SkASSERT(cond)
Definition: SkAssert.h:116
GrResourceCache * getResourceCache()
GrDirectContextPriv priv()
GrDirectContext * getContext()
Definition: GrGpu.h:67