Bug 753784; add the ability to force a single tile. r=roc

This commit is contained in:
Nicholas Cameron
2012-05-22 19:14:03 -04:00
parent f18c522e50
commit 4ffe1932d5
8 changed files with 31 additions and 10 deletions

View File

@@ -660,7 +660,10 @@ ShadowImageLayerOGL::Init(const SharedImage& aFront)
mSize = surf->GetSize();
mTexImage = gl()->CreateTextureImage(nsIntSize(mSize.width, mSize.height),
surf->GetContentType(),
LOCAL_GL_CLAMP_TO_EDGE);
LOCAL_GL_CLAMP_TO_EDGE,
mForceSingleTile
? TextureImage::ForceSingleTile
: TextureImage::NoFlags);
return true;
} else {
YUVImage yuv = aFront.get_YUVImage();