Bug 1265676 - Fix other callsites. - r=ethlin

MozReview-Commit-ID: EgLMZajmRnD
This commit is contained in:
Jeff Gilbert 2016-06-06 13:43:18 -07:00
parent 2209015dd1
commit 381a9f281a
8 changed files with 8 additions and 8 deletions

View File

@ -2218,7 +2218,7 @@ ZeroTextureData(WebGLContext* webgl, const char* funcName, bool respecifyTexture
const auto driverUnpackInfo = usage->idealUnpack;
MOZ_RELEASE_ASSERT(driverUnpackInfo, "GFX: ideal unpack info not set.");
if (usage->isRenderable && depth == 1 &&
if (usage->IsRenderable() && depth == 1 &&
!xOffset && !yOffset && !zOffset)
{
// While we would like to skip the extra complexity of trying to zero with an FB

View File

@ -24,7 +24,7 @@ WebGLExtensionColorBufferFloat::WebGLExtensionColorBufferFloat(WebGLContext* web
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
auto usage = fua->EditUsage(effFormat);
usage->isRenderable = true;
usage->SetRenderable();
fua->AllowRBFormat(sizedFormat, usage);
};

View File

@ -24,7 +24,7 @@ WebGLExtensionColorBufferHalfFloat::WebGLExtensionColorBufferHalfFloat(WebGLCont
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
auto usage = fua->EditUsage(effFormat);
usage->isRenderable = true;
usage->SetRenderable();
fua->AllowRBFormat(sizedFormat, usage);
};

View File

@ -19,7 +19,7 @@ WebGLExtensionDepthTexture::WebGLExtensionDepthTexture(WebGLContext* webgl)
GLenum unpackType)
{
auto usage = fua->EditUsage(effFormat);
usage->isRenderable = true;
usage->SetRenderable();
const webgl::PackingInfo pi = {unpackFormat, unpackType};
const webgl::DriverUnpackInfo dui = {unpackFormat, unpackFormat, unpackType};

View File

@ -20,7 +20,7 @@ WebGLExtensionEXTColorBufferFloat::WebGLExtensionEXTColorBufferFloat(WebGLContex
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
auto usage = fua->EditUsage(effFormat);
usage->isRenderable = true;
usage->SetRenderable();
fua->AllowRBFormat(sizedFormat, usage);
};

View File

@ -49,7 +49,7 @@ WebGLExtensionSRGB::WebGLExtensionSRGB(WebGLContext* webgl)
fnAdd(webgl::EffectiveFormat::SRGB8_ALPHA8, LOCAL_GL_SRGB_ALPHA, LOCAL_GL_RGBA);
auto usage = fua->EditUsage(webgl::EffectiveFormat::SRGB8_ALPHA8);
usage->isRenderable = true;
usage->SetRenderable();
fua->AllowRBFormat(LOCAL_GL_SRGB8_ALPHA8, usage);
}

View File

@ -278,7 +278,7 @@ WebGLFBAttachPoint::IsComplete(WebGLContext* webgl, nsCString* const out_info) c
}
const auto formatUsage = Format();
if (!formatUsage->isRenderable) {
if (!formatUsage->IsRenderable()) {
nsAutoCString attachName;
AttachmentName(&attachName);

View File

@ -748,7 +748,7 @@ WebGLTexture::GenerateMipmap(TexTarget texTarget)
// texture-filterable according to table 3.13, an INVALID_OPERATION error
// is generated.
const auto usage = baseImageInfo.mFormat;
bool canGenerateMipmap = (usage->isRenderable && usage->isFilterable);
bool canGenerateMipmap = (usage->IsRenderable() && usage->isFilterable);
switch (usage->format->effectiveFormat) {
case webgl::EffectiveFormat::Luminance8:
case webgl::EffectiveFormat::Alpha8: