diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-12-31 19:18:30 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-12-31 19:18:30 -0600 |
| commit | 1118226f270d2b44d10dd3cebd9f89fd38042680 (patch) | |
| tree | 9dd80995633c70581443d40f58d6ac35837e0bd4 /Source/Core/VideoBackends/Software/SWStatistics.cpp | |
| parent | 8d8b0fc884367bc4d433d698a790ef5badee6957 (diff) | |
| parent | 16824d5fd17b43b156706bf02a8063b389604766 (diff) | |
Merge branch 'master' into buffer_storage
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)); +} |
