mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
EfbInterface: Make perf_values internally linked
Instead, expose functions to operate with it. This way we keep the internal representation concealed.
This commit is contained in:
parent
f3a8874214
commit
c58b5e9b9b
3 changed files with 30 additions and 22 deletions
|
@ -38,11 +38,8 @@ public:
|
|||
~PerfQuery() {}
|
||||
void EnableQuery(PerfQueryGroup type) override {}
|
||||
void DisableQuery(PerfQueryGroup type) override {}
|
||||
void ResetQuery() override
|
||||
{
|
||||
memset(EfbInterface::perf_values, 0, sizeof(EfbInterface::perf_values));
|
||||
}
|
||||
u32 GetQueryResult(PerfQueryType type) override { return EfbInterface::perf_values[type]; }
|
||||
void ResetQuery() override { EfbInterface::ResetPerfQuery(); }
|
||||
u32 GetQueryResult(PerfQueryType type) override { return EfbInterface::GetPerfQueryResult(type); }
|
||||
void FlushResults() override {}
|
||||
bool IsFlushed() const override { return true; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue