#include <GrBackendSurface.h>
Definition at line 149 of file GrBackendSurface.h.
◆ GrBackendTexture() [1/3]
GrBackendTexture::GrBackendTexture |
( |
| ) |
|
◆ GrBackendTexture() [2/3]
Definition at line 290 of file GrBackendSurface.cpp.
295 : fIsValid(true)
298 , fLabel(label)
skgpu::Mipmapped mipmapped() const
GrMockTextureInfo fMockInfo
◆ GrBackendTexture() [3/3]
◆ ~GrBackendTexture()
GrBackendTexture::~GrBackendTexture |
( |
| ) |
|
◆ backend()
◆ dimensions()
SkISize GrBackendTexture::dimensions |
( |
| ) |
const |
|
inline |
◆ getBackendFormat()
Definition at line 439 of file GrBackendSurface.cpp.
439 {
442 }
443 switch (fBackend) {
448#ifdef SK_DIRECT3D
450 auto d3dInfo = fD3DInfo.snapTextureResourceInfo();
451 return GrBackendFormat::MakeDxgi(d3dInfo.fFormat);
452 }
453#endif
456 default:
458 }
459}
virtual GrBackendFormat getBackendFormat() const =0
GrBackendFormat getBackendFormat() const
◆ getLabel()
std::string_view GrBackendTexture::getLabel |
( |
| ) |
const |
|
inline |
◆ getMockTextureInfo()
◆ hasMipmaps()
bool GrBackendTexture::hasMipmaps |
( |
| ) |
const |
|
inline |
◆ height()
int GrBackendTexture::height |
( |
| ) |
const |
|
inline |
◆ isProtected()
bool GrBackendTexture::isProtected |
( |
| ) |
const |
Definition at line 401 of file GrBackendSurface.cpp.
401 {
403 return false;
404 }
407 }
410 }
411
412 return false;
413}
virtual bool isProtected() const =0
GrBackendApi backend() const
◆ isSameTexture()
Definition at line 415 of file GrBackendSurface.cpp.
415 {
417 return false;
418 }
419 if (fBackend != that.fBackend) {
420 return false;
421 }
422 switch (fBackend) {
427#ifdef SK_DIRECT3D
429 return fD3DInfo.snapTextureResourceInfo().fResource ==
430 that.fD3DInfo.snapTextureResourceInfo().fResource;
431#endif
434 default:
435 return false;
436 }
437}
virtual bool isSameTexture(const GrBackendTextureData *) const =0
◆ isValid()
bool GrBackendTexture::isValid |
( |
| ) |
const |
|
inline |
◆ mipmapped()
◆ operator=()
Definition at line 321 of file GrBackendSurface.cpp.
321 {
322 if (this == &that) {
323 return *this;
324 }
325
327 this->cleanup();
328 fIsValid = false;
329 return *this;
330 } else if (fIsValid && this->fBackend != that.fBackend) {
331 this->cleanup();
332 fIsValid = false;
333 }
334 fWidth = that.fWidth;
335 fHeight = that.fHeight;
336 fMipmapped = that.fMipmapped;
337 fBackend = that.fBackend;
338 fTextureType = that.fTextureType;
339
340 switch (that.fBackend) {
344 fTextureData.
reset();
345 that.fTextureData->
copyTo(fTextureData);
346 break;
347#ifdef SK_DIRECT3D
349 fD3DInfo.assign(that.fD3DInfo, this->
isValid());
350 break;
351#endif
354 break;
355 default:
357 }
358 fIsValid = true;
359 return *this;
360}
#define SK_ABORT(message,...)
virtual void copyTo(AnyTextureData &) const =0
◆ setMutableState()
Definition at line 397 of file GrBackendSurface.cpp.
397 {
399}
virtual void setMutableState(const skgpu::MutableTextureState &)
◆ textureType()
◆ width()
int GrBackendTexture::width |
( |
| ) |
const |
|
inline |
◆ GrBackendSurfacePriv
◆ GrBackendTextureData
◆ GrVkGpu
◆ fMockInfo
The documentation for this class was generated from the following files: