зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1240708 - Various trivial coverity warning fixes (part 2). r=kats
This commit is contained in:
Родитель
9a2dc00d43
Коммит
a2d098481d
|
@ -418,11 +418,14 @@ GLContext::GLContext(const SurfaceCaps& caps,
|
|||
mMaxCubeMapTextureSize(0),
|
||||
mMaxTextureImageSize(0),
|
||||
mMaxRenderbufferSize(0),
|
||||
mMaxSamples(0),
|
||||
mNeedsTextureSizeChecks(false),
|
||||
mNeedsFlushBeforeDeleteFB(false),
|
||||
mWorkAroundDriverBugs(true),
|
||||
mHeavyGLCallsSinceLastFlush(false)
|
||||
{
|
||||
mMaxViewportDims[0] = 0;
|
||||
mMaxViewportDims[1] = 0;
|
||||
mOwningThreadId = PlatformThread::CurrentId();
|
||||
}
|
||||
|
||||
|
@ -1739,7 +1742,6 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
|
|||
|
||||
mMaxTextureImageSize = mMaxTextureSize;
|
||||
|
||||
mMaxSamples = 0;
|
||||
if (IsSupported(GLFeature::framebuffer_multisample)) {
|
||||
fGetIntegerv(LOCAL_GL_MAX_SAMPLES, (GLint*)&mMaxSamples);
|
||||
}
|
||||
|
|
|
@ -341,7 +341,6 @@ public:
|
|||
protected:
|
||||
bool mInitialized;
|
||||
bool mIsOffscreen;
|
||||
bool mIsGlobalSharedContext;
|
||||
bool mContextLost;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "gfxUtils.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/unused.h"
|
||||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsDirectoryServiceUtils.h"
|
||||
#include "nsIGfxInfo.h"
|
||||
|
@ -306,8 +307,8 @@ GLLibraryEGL::EnsureInitialized(bool forceAccel)
|
|||
};
|
||||
|
||||
// Do not warn about the failure to load this - see bug 1092191
|
||||
GLLibraryLoader::LoadSymbols(mEGLLibrary, &optionalSymbols[0], nullptr, nullptr,
|
||||
false);
|
||||
Unused << GLLibraryLoader::LoadSymbols(mEGLLibrary, &optionalSymbols[0],
|
||||
nullptr, nullptr, false);
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 18
|
||||
MOZ_RELEASE_ASSERT(mSymbols.fQueryStringImplementationANDROID,
|
||||
|
|
|
@ -95,8 +95,9 @@ GLLibraryLoader::LoadSymbols(PRLibrary *lib,
|
|||
}
|
||||
|
||||
if (*ss->symPointer == 0) {
|
||||
if (warnOnFailure)
|
||||
if (warnOnFailure) {
|
||||
printf_stderr("Can't find symbol '%s'.\n", ss->symNames[0]);
|
||||
}
|
||||
|
||||
failCount++;
|
||||
}
|
||||
|
|
|
@ -270,6 +270,7 @@ TextureImage::TextureImage(const gfx::IntSize& aSize,
|
|||
: mSize(aSize)
|
||||
, mWrapMode(aWrapMode)
|
||||
, mContentType(aContentType)
|
||||
, mTextureFormat(gfx::SurfaceFormat::UNKNOWN)
|
||||
, mFilter(Filter::GOOD)
|
||||
, mFlags(aFlags)
|
||||
{}
|
||||
|
@ -313,6 +314,7 @@ TiledTextureImage::TiledTextureImage(GLContext* aGL,
|
|||
: TextureImage(aSize, LOCAL_GL_CLAMP_TO_EDGE, aContentType, aFlags)
|
||||
, mCurrentImage(0)
|
||||
, mIterationCallback(nullptr)
|
||||
, mIterationCallbackData(nullptr)
|
||||
, mInUpdate(false)
|
||||
, mRows(0)
|
||||
, mColumns(0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче