Bug 1112476 - Support dumping texture data on the ClientLayerManager. r=mstange
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user