Bug 1158122 - Remove all occurences of nsIntRect in gfx/gl/. r=nical

This commit is contained in:
Thibaud Backenstrass 2015-05-07 11:07:27 +02:00
parent 64c0507ea8
commit c9de3cdc29
4 changed files with 5 additions and 5 deletions

View File

@ -52,13 +52,13 @@ WrapTexCoord(GLfloat v)
}
void
DecomposeIntoNoRepeatTriangles(const nsIntRect& aTexCoordRect,
DecomposeIntoNoRepeatTriangles(const gfx::IntRect& aTexCoordRect,
const nsIntSize& aTexSize,
RectTriangles& aRects,
bool aFlipY /* = false */)
{
// normalize this
nsIntRect tcr(aTexCoordRect);
gfx::IntRect tcr(aTexCoordRect);
while (tcr.x >= aTexSize.width)
tcr.x -= aTexSize.width;
while (tcr.y >= aTexSize.height)

View File

@ -66,7 +66,7 @@ private:
* The resulting vertex coordinates should be drawn using GL_TRIANGLES,
* and rects.numRects * 3 * 6
*/
void DecomposeIntoNoRepeatTriangles(const nsIntRect& aTexCoordRect,
void DecomposeIntoNoRepeatTriangles(const gfx::IntRect& aTexCoordRect,
const nsIntSize& aTexSize,
RectTriangles& aRects,
bool aFlipY = false);

View File

@ -153,7 +153,7 @@ public:
*/
virtual void Resize(const gfx::IntSize& aSize) {
mSize = aSize;
nsIntRegion r(nsIntRect(0, 0, aSize.width, aSize.height));
nsIntRegion r(gfx::IntRect(0, 0, aSize.width, aSize.height));
BeginUpdate(r);
EndUpdate();
}

View File

@ -65,7 +65,7 @@ protected:
GLContext* mGLContext;
nsIntRect mUpdateRect;
gfx::IntRect mUpdateRect;
gfx::SurfaceFormat mUpdateFormat;
RefPtr<gfx::DrawTarget> mUpdateDrawTarget;
EGLImage mEGLImage;