mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 948221 - Part 5: Make GetSourceSurfaceForSurface use the screen reference draw target if one isn't specified. r=Bas
This commit is contained in:
parent
d5e6569ce5
commit
c40c4b1a78
@ -719,6 +719,14 @@ gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurfa
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!aTarget) {
|
||||
if (ScreenReferenceDrawTarget()) {
|
||||
aTarget = ScreenReferenceDrawTarget();
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void *userData = aSurface->GetData(&kSourceSurface);
|
||||
|
||||
if (userData) {
|
||||
|
Loading…
Reference in New Issue
Block a user