diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-10 23:12:54 -0400 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-10-07 10:37:01 -0400 |
| commit | a7c72081039ca1c6bee6b18db44fe4e9ffaf4fb5 (patch) | |
| tree | 70e3c53d290bf5f0e76a2f3295b4ff01e07e2127 /Source/Core/VideoBackends/Software/Src/SWStatistics.cpp | |
| parent | d6f0ecebb4742f6b41397420f7d58ab7a05a03cc (diff) | |
Put Plugins/ in Core/, rename to VideoBackends
Diffstat (limited to 'Source/Core/VideoBackends/Software/Src/SWStatistics.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Src/SWStatistics.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/Src/SWStatistics.cpp b/Source/Core/VideoBackends/Software/Src/SWStatistics.cpp new file mode 100644 index 0000000000..99b51b77a1 --- /dev/null +++ b/Source/Core/VideoBackends/Software/Src/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)); +} |
