Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GrVkContextThreadSafeProxy Class Reference

#include <GrVkContextThreadSafeProxy.h>

Inheritance diagram for GrVkContextThreadSafeProxy:
GrContextThreadSafeProxy SkNVRefCnt< GrContextThreadSafeProxy >

Public Member Functions

 GrVkContextThreadSafeProxy (const GrContextOptions &)
 
bool isValidCharacterizationForVulkan (sk_sp< const GrCaps >, bool isTextureable, skgpu::Mipmapped isMipmapped, skgpu::Protected isProtected, bool vkRTSupportsInputAttachment, bool forVulkanSecondaryCommandBuffer) override
 
- Public Member Functions inherited from GrContextThreadSafeProxy
virtual ~GrContextThreadSafeProxy ()
 
GrSurfaceCharacterization createCharacterization (size_t cacheMaxResourceBytes, const SkImageInfo &ii, const GrBackendFormat &backendFormat, int sampleCount, GrSurfaceOrigin origin, const SkSurfaceProps &surfaceProps, skgpu::Mipmapped isMipmapped, bool willUseGLFBO0=false, bool isTextureable=true, skgpu::Protected isProtected=GrProtected::kNo, bool vkRTSupportsInputAttachment=false, bool forVulkanSecondaryCommandBuffer=false)
 
GrBackendFormat defaultBackendFormat (SkColorType ct, GrRenderable renderable) const
 
GrBackendFormat compressedBackendFormat (SkTextureCompressionType c) const
 
int maxSurfaceSampleCountForColorType (SkColorType colorType) const
 
bool isValid () const
 
bool operator== (const GrContextThreadSafeProxy &that) const
 
bool operator!= (const GrContextThreadSafeProxy &that) const
 
GrContextThreadSafeProxyPriv priv ()
 
const GrContextThreadSafeProxyPriv priv () const
 
- Public Member Functions inherited from SkNVRefCnt< GrContextThreadSafeProxy >
 SkNVRefCnt ()
 
 ~SkNVRefCnt ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
void deref () const
 
bool refCntGreaterThan (int32_t threadIsolatedTestCnt) const
 

Additional Inherited Members

- Protected Member Functions inherited from GrContextThreadSafeProxy
 GrContextThreadSafeProxy (GrBackendApi, const GrContextOptions &)
 

Detailed Description

Definition at line 22 of file GrVkContextThreadSafeProxy.h.

Constructor & Destructor Documentation

◆ GrVkContextThreadSafeProxy()

GrVkContextThreadSafeProxy::GrVkContextThreadSafeProxy ( const GrContextOptions opts)

Member Function Documentation

◆ isValidCharacterizationForVulkan()

bool GrVkContextThreadSafeProxy::isValidCharacterizationForVulkan ( sk_sp< const GrCaps caps,
bool  isTextureable,
skgpu::Mipmapped  isMipmapped,
skgpu::Protected  isProtected,
bool  vkRTSupportsInputAttachment,
bool  forVulkanSecondaryCommandBuffer 
)
overridevirtual

Reimplemented from GrContextThreadSafeProxy.

Definition at line 20 of file GrVkContextThreadSafeProxy.cpp.

26 {
27 if (forVulkanSecondaryCommandBuffer &&
28 (isTextureable || isMipmapped == skgpu::Mipmapped::kYes || vkRTSupportsInputAttachment)) {
29 return false;
30 }
31
32 const GrVkCaps* vkCaps = (const GrVkCaps*)caps.get();
33
34 // The potection status of the characterization and the context need to match
35 return isProtected == GrProtected(vkCaps->supportsProtectedContent());
36}
skgpu::Protected GrProtected
Definition GrTypes.h:139
bool supportsProtectedContent() const
Definition GrCaps.h:422
T * get() const
Definition SkRefCnt.h:303

The documentation for this class was generated from the following files: