Commit e1743f37 by Hans Wennborg Committed by Nico Weber

Clang warning fixes

This fixes member initialization order and unused private member warnings that broke the Clang build after the last Angle roll. BUG=82385 Change-Id: If866f352bda6d66093c180fdbec6c16bf902b628 Reviewed-on: https://chromium-review.googlesource.com/320466Reviewed-by: 's avatarNico Weber <thakis@chromium.org> Tryjob-Request: Nico Weber <thakis@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tryjob-Request: Geoff Lang <geofflang@chromium.org> Tested-by: 's avatarNico Weber <thakis@chromium.org>
parent ce95d05b
......@@ -49,10 +49,10 @@ SwapChain11::SwapChain11(Renderer11 *renderer,
mSwapChain(nullptr),
mSwapChain1(nullptr),
mKeyedMutex(nullptr),
mNeedsOffscreenTexture(orientation != EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE),
mBackBufferTexture(nullptr),
mBackBufferRTView(nullptr),
mBackBufferSRView(nullptr),
mNeedsOffscreenTexture(orientation != EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE),
mOffscreenTexture(nullptr),
mOffscreenRTView(nullptr),
mOffscreenSRView(nullptr),
......
......@@ -64,8 +64,8 @@ class SwapChain11 : public SwapChainD3D
EGLint present(EGLint x, EGLint y, EGLint width, EGLint height);
Renderer11 *mRenderer;
EGLint mHeight;
EGLint mWidth;
EGLint mHeight;
const EGLint mOrientation;
bool mAppCreatedShareHandle;
unsigned int mSwapInterval;
......
......@@ -22,8 +22,8 @@ NativeWindow::NativeWindow(EGLNativeWindowType window,
bool directComposition)
: mWindow(window),
mDirectComposition(directComposition),
mCompositionTarget(nullptr),
mDevice(nullptr),
mCompositionTarget(nullptr),
mVisual(nullptr),
mConfig(config)
{
......
......@@ -25,7 +25,6 @@ SwapChain9::SwapChain9(Renderer9 *renderer,
mRenderer(renderer),
mWidth(-1),
mHeight(-1),
mOrientation(orientation),
mSwapInterval(-1),
mSwapChain(nullptr),
mBackBuffer(nullptr),
......@@ -35,7 +34,7 @@ SwapChain9::SwapChain9(Renderer9 *renderer,
mColorRenderTarget(this, false),
mDepthStencilRenderTarget(this, true)
{
ASSERT(mOrientation == 0);
ASSERT(orientation == 0);
}
SwapChain9::~SwapChain9()
......
......@@ -49,9 +49,8 @@ class SwapChain9 : public SwapChainD3D
void release();
Renderer9 *mRenderer;
EGLint mHeight;
EGLint mWidth;
EGLint mOrientation;
EGLint mHeight;
EGLint mSwapInterval;
IDirect3DSwapChain9 *mSwapChain;
......
......@@ -19,8 +19,8 @@ ANGLEPerfTest::ANGLEPerfTest(const std::string &name, const std::string &suffix)
: mName(name),
mSuffix(suffix),
mTimer(nullptr),
mNumStepsPerformed(0),
mRunTimeSeconds(5.0),
mNumStepsPerformed(0),
mRunning(true)
{
mTimer = CreateTimer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment