diff --git a/gfx/layers/CompositorTypes.h b/gfx/layers/CompositorTypes.h index fd67cbedf265..1bb2bf6216fc 100644 --- a/gfx/layers/CompositorTypes.h +++ b/gfx/layers/CompositorTypes.h @@ -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; + } }; /**