mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1158122 - Remove all occurences of nsIntRect in gfx/gl/. r=nical
This commit is contained in:
parent
64c0507ea8
commit
c9de3cdc29
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ protected:
|
||||
|
||||
GLContext* mGLContext;
|
||||
|
||||
nsIntRect mUpdateRect;
|
||||
gfx::IntRect mUpdateRect;
|
||||
gfx::SurfaceFormat mUpdateFormat;
|
||||
RefPtr<gfx::DrawTarget> mUpdateDrawTarget;
|
||||
EGLImage mEGLImage;
|
||||
|
Loading…
Reference in New Issue
Block a user