Bug 1343728 - Part 2: Add const operator== to TextureFactoryIdentifier and CompositorOptions, r=jrmuizel

MozReview-Commit-ID: 6BayMmqNlyx
This commit is contained in:
Michael Layzell 2017-06-15 13:25:27 -04:00
Родитель e1e38ff7fb
Коммит aafcf19442
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -195,6 +195,18 @@ struct TextureFactoryIdentifier
, mSupportsBackdropCopyForComponentAlpha(true)
, mSyncHandle(aSyncHandle)
{}
bool operator==(const TextureFactoryIdentifier& aOther) const {
return
mParentBackend == aOther.mParentBackend &&
mParentProcessType == aOther.mParentProcessType &&
mMaxTextureSize == aOther.mMaxTextureSize &&
mCompositorUseANGLE == aOther.mCompositorUseANGLE &&
mSupportsTextureBlitting == aOther.mSupportsTextureBlitting &&
mSupportsPartialUploads == aOther.mSupportsPartialUploads &&
mSupportsComponentAlpha == aOther.mSupportsComponentAlpha &&
mSyncHandle == aOther.mSyncHandle;
}
};
/**