зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1184402 - Part 1: Rename GetInfo() to GetUsage() for obtaining FormatUsageInfo. r=jgilbert
This commit is contained in:
Родитель
68bcb02c04
Коммит
26afc943c1
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче