diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-07 15:14:29 -0500 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-31 14:03:19 -0500 |
| commit | 34692ab826abc8f8faa61bdb2280b742424528f1 (patch) | |
| tree | b0eedc645badbea316ff59c125eaf808b28777ec /Source/Core/VideoBackends/Software/SWStatistics.cpp | |
| parent | 43e618682e8093602fc83dfa902ee7ae3fd3a4f6 (diff) | |
Remove unnecessary Src/ folders
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWStatistics.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWStatistics.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWStatistics.cpp b/Source/Core/VideoBackends/Software/SWStatistics.cpp new file mode 100644 index 0000000000..99b51b77a1 --- /dev/null +++ b/Source/Core/VideoBackends/Software/SWStatistics.cpp @@ -0,0 +1,25 @@ +// Copyright 2013 Dolphin Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#include "SWStatistics.h" + +SWStatistics swstats; + +template <class T> +void Xchg(T& a, T&b) +{ + T c = a; + a = b; + b = c; +} + +SWStatistics::SWStatistics() +{ + frameCount = 0; +} + +void SWStatistics::ResetFrame() +{ + memset(&thisFrame, 0, sizeof(ThisFrame)); +} |
