scummvm/test/null_osystem.cpp
Wyatt Radkiewicz eebadf4495 GRAPHICS: Optimize alpha blend NEON and Generic
I optimized the NEON and Generic paths for ManagedSurface::blendBlitFrom
and the new TransparentSurface::blit. Now (on arm), the new blit function
matches the speed of the old blit function even with the added
inderections that the runtime extension detection code adds in.

Other than that, I made a benchmark for this code and you can make it
using this command:
CFLAGS="-DTEST_BLEND_SPEED" make test

I reverted wii to not use altivec anymore since it doesn't.

I also removed graphics/blit-neon.cpp from graphics/module.mk because
simply including the .cpp file in graphics/blit-alpha.cpp was a better
option because then I didn't need to instantiate every version of the
templates that I needed.
2023-08-13 00:22:10 +02:00

34 lines
679 B
C++

#define USE_NULL_DRIVER 1
#define NULL_DRIVER_USE_FOR_TEST 1
#include "null_osystem.h"
#include "../backends/platform/null/null.cpp"
void Common::install_null_g_system() {
g_system = OSystem_NULL_create();
}
bool BaseBackend::setScaler(const char *name, int factor) {
return false;
}
void BaseBackend::displayMessageOnOSD(const Common::U32String &msg) {
}
void BaseBackend::initBackend() {
OSystem::initBackend();
}
bool BaseBackend::hasFeature(OSystem::Feature f) {
return false;
}
void BaseBackend::fillScreen(uint32 col) {
}
void BaseBackend::fillScreen(const Common::Rect &r, uint32 col) {
}
void EventsBaseBackend::initBackend() {
BaseBackend::initBackend();
}