Bug 1184402 - Part 1: Rename GetInfo() to GetUsage() for obtaining FormatUsageInfo. r=jgilbert

This commit is contained in:
Dan Glastonbury 2015-07-17 10:24:34 +10:00
Родитель 68bcb02c04
Коммит 26afc943c1
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -747,7 +747,7 @@ FormatUsageAuthority::CreateForWebGL2()
//////////////////////////////////////////////////////////////////////////////////////////
FormatUsageInfo*
FormatUsageAuthority::GetInfo(EffectiveFormat format)
FormatUsageAuthority::GetUsage(EffectiveFormat format)
{
auto itr = mInfoMap.find(format);
@ -777,7 +777,7 @@ FormatUsageAuthority::AddUnpackOption(GLenum unpackFormat, GLenum unpackType,
EffectiveFormat effectiveFormat)
{
const UnpackTuple unpack = { unpackFormat, unpackType };
FormatUsageInfo* usage = GetInfo(effectiveFormat);
FormatUsageInfo* usage = GetUsage(effectiveFormat);
MOZ_RELEASE_ASSERT(usage);
if (!usage)
return;

Просмотреть файл

@ -241,11 +241,11 @@ public:
void AddUnpackOption(GLenum unpackFormat, GLenum unpackType,
EffectiveFormat effectiveFormat);
FormatUsageInfo* GetInfo(EffectiveFormat format);
FormatUsageInfo* GetUsage(EffectiveFormat format);
FormatUsageInfo* GetInfo(const FormatInfo* format)
FormatUsageInfo* GetUsage(const FormatInfo* format)
{
return GetInfo(format->effectiveFormat);
return GetUsage(format->effectiveFormat);
}
};