mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1059033
- Part 5: Implement OptimizeSourceSurface for DrawTargetCG. r=Bas
This commit is contained in:
parent
d387136ff5
commit
320fb6087a
@ -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