Lines Matching defs:that
4 * Use of this source code is governed by a BSD-style license that can be
34 GrBackendFormat::GrBackendFormat(const GrBackendFormat& that)
35 : fBackend(that.fBackend)
36 , fValid(that.fValid)
37 , fTextureType(that.fTextureType) {
45 fGLFormat = that.fGLFormat;
50 fVk = that.fVk;
55 fMtlFormat = that.fMtlFormat;
60 fDxgiFormat = that.fDxgiFormat;
65 fDawnFormat = that.fDawnFormat;
69 fMock = that.fMock;
76 GrBackendFormat& GrBackendFormat::operator=(const GrBackendFormat& that) {
77 if (this != &that) {
79 new (this) GrBackendFormat(that);
347 bool GrBackendFormat::operator==(const GrBackendFormat& that) const {
349 if (!fValid || !that.fValid) {
353 if (fBackend != that.fBackend) {
360 return fGLFormat == that.fGLFormat;
365 return fVk.fFormat == that.fVk.fFormat &&
366 fVk.fYcbcrConversionInfo == that.fVk.fYcbcrConversionInfo;
371 return fMtlFormat == that.fMtlFormat;
376 return fDawnFormat == that.fDawnFormat;
380 return fMock.fColorType == that.fMock.fColorType &&
381 fMock.fCompressionType == that.fMock.fCompressionType;
384 return fDxgiFormat == that.fDxgiFormat;
613 GrBackendTexture::GrBackendTexture(const GrBackendTexture& that) : fIsValid(false) {
614 *this = that;
617 GrBackendTexture& GrBackendTexture::operator=(const GrBackendTexture& that) {
618 if (!that.isValid()) {
622 } else if (fIsValid && this->fBackend != that.fBackend) {
626 fWidth = that.fWidth;
627 fHeight = that.fHeight;
628 fMipmapped = that.fMipmapped;
629 fBackend = that.fBackend;
630 fTextureType = that.fTextureType;
632 switch (that.fBackend) {
635 fGLInfo.assign(that.fGLInfo, this->isValid());
640 fVkInfo.assign(that.fVkInfo, this->isValid());
645 fMtlInfo = that.fMtlInfo;
650 fD3DInfo.assign(that.fD3DInfo, this->isValid());
655 fDawnInfo = that.fDawnInfo;
659 fMockInfo = that.fMockInfo;
664 fMutableState = that.fMutableState;
740 // Specifically, tests that rely on CanvasResourceProviderTextureGpuMemoryBuffer.
741 // If that code ever goes away (or ideally becomes backend-agnostic), this can go away.
781 bool GrBackendTexture::isSameTexture(const GrBackendTexture& that) {
782 if (!this->isValid() || !that.isValid()) {
785 if (fBackend != that.fBackend) {
791 return fGLInfo.info().fID == that.fGLInfo.info().fID;
796 that.fVkInfo.snapImageInfo(that.fMutableState.get()).fImage;
800 return this->fMtlInfo.fTexture == that.fMtlInfo.fTexture;
805 that.fD3DInfo.snapTextureResourceInfo().fResource;
809 return this->fDawnInfo.fTexture.Get() == that.fDawnInfo.fTexture.Get();
813 return fMockInfo.id() == that.fMockInfo.id();
1057 GrBackendRenderTarget::GrBackendRenderTarget(const GrBackendRenderTarget& that) : fIsValid(false) {
1058 *this = that;
1061 GrBackendRenderTarget& GrBackendRenderTarget::operator=(const GrBackendRenderTarget& that) {
1062 if (!that.isValid()) {
1066 } else if (fIsValid && this->fBackend != that.fBackend) {
1070 fWidth = that.fWidth;
1071 fHeight = that.fHeight;
1072 fSampleCnt = that.fSampleCnt;
1073 fStencilBits = that.fStencilBits;
1074 fBackend = that.fBackend;
1076 switch (that.fBackend) {
1079 fGLInfo = that.fGLInfo;
1084 fVkInfo.assign(that.fVkInfo, this->isValid());
1089 fMtlInfo = that.fMtlInfo;
1094 fD3DInfo.assign(that.fD3DInfo, this->isValid());
1099 fDawnInfo = that.fDawnInfo;
1103 fMockInfo = that.fMockInfo;
1108 fMutableState = that.fMutableState;
1109 fIsValid = that.fIsValid;