Bug 877115 - [Moz2Dify] Part 2. Moz2Dify GLContext::ResizeOffscreen signature. (carries r=nical)

This commit is contained in:
Andreas Pehrson 2013-12-10 17:11:11 +01:00
Родитель a5a5fddae5
Коммит 99e812a782
4 изменённых файлов: 12 добавлений и 11 удалений

Просмотреть файл

@ -41,6 +41,7 @@
#include "GLContextSymbols.h"
#include "mozilla/GenericRefCounted.h"
#include "mozilla/Scoped.h"
#include "gfx2DGlue.h"
#ifdef DEBUG
#define MOZ_ENABLE_GL_TRACKING 1
@ -2492,8 +2493,8 @@ public:
*
* Only valid if IsOffscreen() returns true.
*/
virtual bool ResizeOffscreen(const gfxIntSize& size) {
return ResizeScreenBuffer(size);
virtual bool ResizeOffscreen(const gfx::IntSize& size) {
return ResizeScreenBuffer(ThebesIntSize(size));
}
/*

Просмотреть файл

@ -188,16 +188,16 @@ public:
return true;
}
bool ResizeOffscreen(const gfxIntSize& aNewSize);
bool ResizeOffscreen(const gfx::IntSize& aNewSize);
NSOpenGLContext *mContext;
GLuint mTempTextureName;
};
bool
GLContextCGL::ResizeOffscreen(const gfxIntSize& aNewSize)
GLContextCGL::ResizeOffscreen(const gfx::IntSize& aNewSize)
{
return ResizeScreenBuffer(aNewSize);
return ResizeScreenBuffer(ThebesIntSize(aNewSize));
}
static GLContextCGL *

Просмотреть файл

@ -539,7 +539,7 @@ public:
bool BindTex2DOffscreen(GLContext *aOffscreen);
void UnbindTex2DOffscreen(GLContext *aOffscreen);
bool ResizeOffscreen(const gfxIntSize& aNewSize);
bool ResizeOffscreen(const gfx::IntSize& aNewSize);
void BindOffscreenFramebuffer();
static already_AddRefed<GLContextEGL>
@ -613,9 +613,9 @@ protected:
};
bool
GLContextEGL::ResizeOffscreen(const gfxIntSize& aNewSize)
GLContextEGL::ResizeOffscreen(const gfx::IntSize& aNewSize)
{
return ResizeScreenBuffer(aNewSize);
return ResizeScreenBuffer(ThebesIntSize(aNewSize));
}
static const EGLint kEGLConfigAttribsOffscreenPBuffer[] = {

Просмотреть файл

@ -378,7 +378,7 @@ public:
}
}
bool ResizeOffscreen(const gfxIntSize& aNewSize);
bool ResizeOffscreen(const gfx::IntSize& aNewSize);
HGLRC Context() { return mContext; }
@ -428,9 +428,9 @@ IsValidSizeForFormat(HDC hDC, int format,
}
bool
GLContextWGL::ResizeOffscreen(const gfxIntSize& aNewSize)
GLContextWGL::ResizeOffscreen(const gfx::IntSize& aNewSize)
{
return ResizeScreenBuffer(aNewSize);
return ResizeScreenBuffer(ThebesIntSize(aNewSize));
}
static GLContextWGL *