Commit 5abc9370 by apatrick@chromium.org

Delete Surface::recreateAdditionalSwapChain.

It isn't used anymore. Review URL: https://codereview.appspot.com/8539043 git-svn-id: https://angleproject.googlecode.com/svn/trunk@2043 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent f4e85edb
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 2040
#define BUILD_REVISION 2043
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -323,38 +323,6 @@ bool Surface::resetSwapChain(int backbufferWidth, int backbufferHeight)
return true;
}
void Surface::recreateAdditionalSwapChain()
{
if (!mSwapChain)
{
return;
}
IDirect3DDevice9 *device = mDisplay->getDevice();
if (device == NULL)
{
return;
}
D3DPRESENT_PARAMETERS presentParameters;
HRESULT result = mSwapChain->GetPresentParameters(&presentParameters);
ASSERT(SUCCEEDED(result));
IDirect3DSwapChain9* newSwapChain = NULL;
result = device->CreateAdditionalSwapChain(&presentParameters, &newSwapChain);
if (FAILED(result))
{
return;
}
mSwapChain->Release();
mSwapChain = newSwapChain;
mBackBuffer->Release();
result = mSwapChain->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &mBackBuffer);
ASSERT(SUCCEEDED(result));
}
bool Surface::swapRect(EGLint x, EGLint y, EGLint width, EGLint height)
{
if (!mSwapChain)
......
......@@ -64,8 +64,6 @@ class Surface
virtual void setBoundTexture(gl::Texture2D *texture);
virtual gl::Texture2D *getBoundTexture() const;
void recreateAdditionalSwapChain();
private:
DISALLOW_COPY_AND_ASSIGN(Surface);
......
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