Bug 1250710 - Update usages of ScopedPackAlignment. - r=jrmuizel

MozReview-Commit-ID: DgngFxBu8kn
This commit is contained in:
Jeff Gilbert
2016-06-14 10:09:25 -07:00
parent 4bcbe7b94f
commit c3f06288b1
2 changed files with 8 additions and 4 deletions

View File

@@ -309,7 +309,7 @@ TexClientFromReadback(SharedSurface* src, ClientIPCAllocator* allocator,
MOZ_ASSERT(texClient);
if (!texClient)
return nullptr;
return nullptr;
// With a texClient, we can lock for writing.
TextureClientAutoLock autoLock(texClient, OpenMode::OPEN_WRITE);
@@ -324,7 +324,7 @@ TexClientFromReadback(SharedSurface* src, ClientIPCAllocator* allocator,
auto height = src->mSize.height;
{
ScopedPackAlignment autoAlign(gl, 4);
ScopedPackState scopedPackState(gl);
MOZ_ASSERT(mapped.stride/4 == mapped.size.width);
gl->raw_fReadPixels(0, 0, width, height, readFormat, readType, mapped.data);