#include <GrContext_Base.h>
Definition at line 28 of file GrContext_Base.h.
◆ ~GrContext_Base()
GrContext_Base::~GrContext_Base |
( |
| ) |
|
|
override |
◆ GrContext_Base()
Definition at line 22 of file GrContext_Base.cpp.
24}
sk_sp< GrContextThreadSafeProxy > fThreadSafeProxy
◆ asDirectContext()
◆ asImageContext()
◆ asRecordingContext()
◆ backend()
Definition at line 35 of file GrContext_Base.cpp.
GrBackend backend() const
GrContextThreadSafeProxyPriv priv()
◆ caps()
const GrCaps * GrContext_Base::caps |
( |
| ) |
const |
|
protected |
◆ compressedBackendFormat()
Definition at line 49 of file GrContext_Base.cpp.
49 {
51}
GrBackendFormat compressedBackendFormat(SkTextureCompressionType c) const
◆ contextID()
uint32_t GrContext_Base::contextID |
( |
| ) |
const |
|
protected |
An identifier for this context. The id is used by all compatible contexts. For example, if SkImages are created on one thread using an image creation context, then fed into a DDL Recorder on second thread (which has a recording context) and finally replayed on a third thread with a direct context, then all three contexts will report the same id. It is an error for an image to be used with contexts that report different ids.
Definition at line 34 of file GrContext_Base.cpp.
uint32_t contextID() const
◆ defaultBackendFormat()
Definition at line 44 of file GrContext_Base.cpp.
45 {
47}
GrBackendFormat defaultBackendFormat(SkColorType ct, GrRenderable renderable) const
◆ init()
bool GrContext_Base::init |
( |
| ) |
|
|
protectedvirtual |
◆ matches()
◆ maxSurfaceSampleCountForColorType()
int GrContext_Base::maxSurfaceSampleCountForColorType |
( |
SkColorType |
colorType | ) |
const |
Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA rendering is supported for the color type. 0 is returned if rendering to this color type is not supported at all.
Definition at line 53 of file GrContext_Base.cpp.
53 {
55}
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
int maxSurfaceSampleCountForColorType(SkColorType colorType) const
◆ options()
◆ priv() [1/2]
◆ priv() [2/2]
◆ refCaps()
sk_sp< const GrCaps > GrContext_Base::refCaps |
( |
| ) |
const |
|
protected |
◆ threadSafeProxy()
◆ GrBaseContextPriv
◆ fThreadSafeProxy
The documentation for this class was generated from the following files: