Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2834af3e authored by Cindy Zhou's avatar Cindy Zhou Committed by Gerrit Code Review
Browse files

Merge "Cfi function attribute for codec factory"

parents 3171fc6c f6c0c3c5
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1061,11 +1061,13 @@ private:


}  // namespace android
}  // namespace android


__attribute__((cfi_canonical_jump_table))
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    return new ::android::C2SoftAacDecFactory();
    return new ::android::C2SoftAacDecFactory();
}
}


__attribute__((cfi_canonical_jump_table))
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    delete factory;
    delete factory;
+2 −0
Original line number Original line Diff line number Diff line
@@ -692,11 +692,13 @@ private:


}  // namespace android
}  // namespace android


__attribute__((cfi_canonical_jump_table))
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    return new ::android::C2SoftAacEncFactory();
    return new ::android::C2SoftAacEncFactory();
}
}


__attribute__((cfi_canonical_jump_table))
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    delete factory;
    delete factory;
+2 −0
Original line number Original line Diff line number Diff line
@@ -420,11 +420,13 @@ private:


}  // namespace android
}  // namespace android


__attribute__((cfi_canonical_jump_table))
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    return new ::android::C2SoftAMRDecFactory();
    return new ::android::C2SoftAMRDecFactory();
}
}


__attribute__((cfi_canonical_jump_table))
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    delete factory;
    delete factory;
+2 −0
Original line number Original line Diff line number Diff line
@@ -337,11 +337,13 @@ private:


}  // namespace android
}  // namespace android


__attribute__((cfi_canonical_jump_table))
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    return new ::android::C2SoftAmrNbEncFactory();
    return new ::android::C2SoftAmrNbEncFactory();
}
}


__attribute__((cfi_canonical_jump_table))
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    delete factory;
    delete factory;
+2 −0
Original line number Original line Diff line number Diff line
@@ -411,11 +411,13 @@ private:


}  // namespace android
}  // namespace android


__attribute__((cfi_canonical_jump_table))
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
extern "C" ::C2ComponentFactory* CreateCodec2Factory() {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    return new ::android::C2SoftAmrWbEncFactory();
    return new ::android::C2SoftAmrWbEncFactory();
}
}


__attribute__((cfi_canonical_jump_table))
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) {
    ALOGV("in %s", __func__);
    ALOGV("in %s", __func__);
    delete factory;
    delete factory;
Loading