#include <GrBackendSurface.h>
Definition at line 283 of file GrBackendSurface.h.
◆ GrBackendRenderTarget() [1/3]
GrBackendRenderTarget::GrBackendRenderTarget |
( |
| ) |
|
◆ GrBackendRenderTarget() [2/3]
Definition at line 516 of file GrBackendSurface.cpp.
521 : fIsValid(true)
GrMockRenderTargetInfo fMockInfo
static float max(float r, float g, float b)
◆ ~GrBackendRenderTarget()
GrBackendRenderTarget::~GrBackendRenderTarget |
( |
| ) |
|
◆ GrBackendRenderTarget() [3/3]
◆ backend()
◆ dimensions()
SkISize GrBackendRenderTarget::dimensions |
( |
| ) |
const |
|
inline |
◆ getBackendFormat()
Definition at line 614 of file GrBackendSurface.cpp.
614 {
617 }
618 switch (fBackend) {
623#ifdef SK_DIRECT3D
625 auto info = fD3DInfo.snapTextureResourceInfo();
626 return GrBackendFormat::MakeDxgi(
info.fFormat);
627 }
628#endif
631 default:
633 }
634}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
virtual GrBackendFormat getBackendFormat() const =0
GrBackendFormat getBackendFormat() const
◆ getMockRenderTargetInfo()
◆ height()
int GrBackendRenderTarget::height |
( |
| ) |
const |
|
inline |
◆ isFramebufferOnly()
bool GrBackendRenderTarget::isFramebufferOnly |
( |
| ) |
const |
|
inline |
◆ isProtected()
bool GrBackendRenderTarget::isProtected |
( |
| ) |
const |
Definition at line 648 of file GrBackendSurface.cpp.
648 {
650 return false;
651 }
654 }
657 }
658
659 return false;
660}
virtual bool isProtected() const =0
GrBackendApi backend() const
◆ isValid()
bool GrBackendRenderTarget::isValid |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 546 of file GrBackendSurface.cpp.
546 {
547 if (this == &that) {
548 return *this;
549 }
550
552 this->cleanup();
553 fIsValid = false;
554 return *this;
555 } else if (fIsValid && this->fBackend != that.fBackend) {
556 this->cleanup();
557 fIsValid = false;
558 }
559 fWidth = that.fWidth;
560 fHeight = that.fHeight;
561 fSampleCnt = that.fSampleCnt;
562 fStencilBits = that.fStencilBits;
563 fBackend = that.fBackend;
564
565 switch (that.fBackend) {
570 that.fRTData->
copyTo(fRTData);
571 break;
572#ifdef SK_DIRECT3D
574 fD3DInfo.assign(that.fD3DInfo, this->
isValid());
575 break;
576#endif
579 break;
580 default:
582 }
583 fIsValid = that.fIsValid;
584 return *this;
585}
#define SK_ABORT(message,...)
virtual void copyTo(AnyRenderTargetData &) const =0
◆ sampleCnt()
int GrBackendRenderTarget::sampleCnt |
( |
| ) |
const |
|
inline |
◆ setMutableState()
Definition at line 644 of file GrBackendSurface.cpp.
644 {
646}
virtual void setMutableState(const skgpu::MutableTextureState &)
◆ stencilBits()
int GrBackendRenderTarget::stencilBits |
( |
| ) |
const |
|
inline |
◆ width()
int GrBackendRenderTarget::width |
( |
| ) |
const |
|
inline |
◆ GrBackendRenderTargetData
◆ GrBackendSurfacePriv
◆ GrVkGpu
◆ fMockInfo
The documentation for this class was generated from the following files: