mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
TextureCache: Refactor with smart pointers
The whole ownership model was getting a bit of a mess, with a some of special cases to deal with. And I'm planning to make it even more complex in the future. So here is some upfront work to convert it over to reference counted pointers.
This commit is contained in:
parent
c1fd4a2013
commit
606c18210d
14 changed files with 248 additions and 276 deletions
|
@ -185,6 +185,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager,
|
|||
{
|
||||
INCSTAT(g_stats.this_frame.num_draw_done);
|
||||
g_texture_cache->FlushEFBCopies();
|
||||
g_texture_cache->FlushStaleBinds();
|
||||
g_framebuffer_manager->InvalidatePeekCache(false);
|
||||
g_framebuffer_manager->RefreshPeekCache();
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
@ -203,6 +204,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager,
|
|||
{
|
||||
INCSTAT(g_stats.this_frame.num_token);
|
||||
g_texture_cache->FlushEFBCopies();
|
||||
g_texture_cache->FlushStaleBinds();
|
||||
g_framebuffer_manager->InvalidatePeekCache(false);
|
||||
g_framebuffer_manager->RefreshPeekCache();
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
@ -218,6 +220,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager,
|
|||
{
|
||||
INCSTAT(g_stats.this_frame.num_token_int);
|
||||
g_texture_cache->FlushEFBCopies();
|
||||
g_texture_cache->FlushStaleBinds();
|
||||
g_framebuffer_manager->InvalidatePeekCache(false);
|
||||
g_framebuffer_manager->RefreshPeekCache();
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue