2015-05-24 07:32:32 +03:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2010-11-15 01:56:26 +02:00
|
|
|
|
2015-12-21 21:11:01 +02:00
|
|
|
#include <memory>
|
2010-11-15 01:56:26 +02:00
|
|
|
|
2016-01-17 23:54:31 +02:00
|
|
|
#include "Common/CommonTypes.h"
|
2010-11-15 01:56:26 +02:00
|
|
|
|
2014-09-20 21:54:59 +03:00
|
|
|
inline bool AddressRangesOverlap(u32 aLower, u32 aUpper, u32 bLower, u32 bUpper)
|
2010-11-15 01:56:26 +02:00
|
|
|
{
|
2016-06-24 11:43:46 +03:00
|
|
|
return !((aLower >= bUpper) || (bLower >= aUpper));
|
2010-11-15 01:56:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class FramebufferManagerBase
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 11:43:46 +03:00
|
|
|
virtual ~FramebufferManagerBase();
|
|
|
|
|
|
|
|
static unsigned int GetEFBLayers() { return m_EFBLayers; }
|
2010-11-15 01:56:26 +02:00
|
|
|
protected:
|
2016-06-24 11:43:46 +03:00
|
|
|
static unsigned int m_EFBLayers;
|
2010-11-15 01:56:26 +02:00
|
|
|
};
|
|
|
|
|
2015-12-23 01:47:20 +02:00
|
|
|
extern std::unique_ptr<FramebufferManagerBase> g_framebuffer_manager;
|