mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Bug 1059033 - Part 5: Implement OptimizeSourceSurface for DrawTargetCG. r=Bas
--HG-- extra : rebase_source : 2046ee6e625b8869c7da5b401cb7fe1135f4966a
This commit is contained in:
parent
9777e1de08
commit
b7df98adc1
@ -254,7 +254,12 @@ DrawTargetCG::OptimizeSourceSurface(SourceSurface *aSurface) const
|
||||
aSurface->GetType() == SurfaceType::COREGRAPHICS_CGCONTEXT) {
|
||||
return aSurface;
|
||||
}
|
||||
return aSurface->GetDataSurface();
|
||||
RefPtr<DataSourceSurface> data = aSurface->GetDataSurface();
|
||||
|
||||
return CreateSourceSurfaceFromData(data->GetData(),
|
||||
data->GetSize(),
|
||||
data->Stride(),
|
||||
data->GetFormat());
|
||||
}
|
||||
|
||||
class UnboundnessFixer
|
||||
|
Loading…
Reference in New Issue
Block a user