Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions
GrRecordingContext.h File Reference
#include "include/core/SkColorType.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTArray.h"
#include "include/private/gpu/ganesh/GrContext_Base.h"
#include "include/private/gpu/ganesh/GrImageContext.h"
#include <map>
#include <memory>
#include <string>

Go to the source code of this file.

Classes

class  GrRecordingContext
 
class  GrRecordingContext::Arenas
 
class  GrRecordingContext::OwnedArenas
 
struct  GrRecordingContext::ProgramData
 
class  GrRecordingContext::Stats
 

Namespaces

namespace  sktext
 
namespace  sktext::gpu
 

Functions

static GrDirectContextGrAsDirectContext (GrContext_Base *base)
 

Function Documentation

◆ GrAsDirectContext()

static GrDirectContext * GrAsDirectContext ( GrContext_Base base)
inlinestatic

Safely cast a possibly-null base context to direct context.

Definition at line 281 of file GrRecordingContext.h.

281 {
282 return base ? base->asDirectContext() : nullptr;
283}