Bug 1294586 - Remove dependency on gfxPlatform from CreateDrawTargetFromData. r=dvander

MozReview-Commit-ID: A355fBJKWP6
This commit is contained in:
Ryan Hunt
2016-08-11 14:54:08 -07:00
parent b3c1441eb6
commit 889bd8ab44
11 changed files with 31 additions and 28 deletions

View File

@@ -224,8 +224,8 @@ GrallocTextureData::BorrowDrawTarget()
return nullptr;
}
long byteStride = mGraphicBuffer->getStride() * BytesPerPixel(mFormat);
return gfxPlatform::GetPlatform()->CreateDrawTargetForData(mMappedBuffer, mSize,
byteStride, mFormat);
return gfxPlatform::CreateDrawTargetForData(mMappedBuffer, mSize,
byteStride, mFormat);
}
bool