Bug 1112476 - Support dumping texture data on the ClientLayerManager. r=mstange

This commit is contained in:
Benoit Girard
2014-12-18 13:32:45 -05:00
parent 17f8f4dd78
commit 63a5b13dee
17 changed files with 202 additions and 33 deletions

View File

@@ -65,5 +65,11 @@ MacIOSurfaceTextureClientOGL::GetSize() const
return gfx::IntSize(mSurface->GetDevicePixelWidth(), mSurface->GetDevicePixelHeight());
}
TemporaryRef<gfx::DataSourceSurface>
MacIOSurfaceTextureClientOGL::GetAsSurface()
{
RefPtr<gfx::SourceSurface> surf = mSurface->GetAsSurface();
return surf->GetDataSurface();
}
}
}