Flutter Engine
The Flutter Engine
Functions
GrResourceAllocator.cpp File Reference
#include "src/gpu/ganesh/GrResourceAllocator.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpuResourcePriv.h"
#include "src/gpu/ganesh/GrRenderTargetProxy.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/GrSurfaceProxy.h"
#include "src/gpu/ganesh/GrSurfaceProxyPriv.h"
#include "src/gpu/ganesh/GrTexture.h"

Go to the source code of this file.

Functions

static bool can_proxy_use_scratch (const GrCaps &caps, GrSurfaceProxy *proxy)
 

Function Documentation

◆ can_proxy_use_scratch()

static bool can_proxy_use_scratch ( const GrCaps caps,
GrSurfaceProxy proxy 
)
static

Definition at line 113 of file GrResourceAllocator.cpp.

113 {
114 return caps.reuseScratchTextures() || proxy->asRenderTargetProxy();
115}
bool reuseScratchTextures() const
Definition: GrCaps.h:217
virtual GrRenderTargetProxy * asRenderTargetProxy()