Bug 958489 - Implement base Image::GetAsSourceSurface. r=nical

Added an Image::GetAsSourceSurface to return a gfx::SourceSurface
and implemented in terms of gfxPlatform::GetSourceSurfaceForSurface.

Deprecated GetAsSurface.
This commit is contained in:
Ali Akhtarzada
2014-01-15 10:06:43 -05:00
parent 0d43f0627c
commit f82a8cf40b
16 changed files with 42 additions and 31 deletions

View File

@@ -117,7 +117,7 @@ D3D9SurfaceImage::GetSize()
}
already_AddRefed<gfxASurface>
D3D9SurfaceImage::GetAsSurface()
D3D9SurfaceImage::DeprecatedGetAsSurface()
{
NS_ENSURE_TRUE(mTexture, nullptr);