зеркало из https://github.com/mozilla/gecko-dev.git
Bug 777700 - Part 2: Verify if a cached SourceSurface is still valid. r=jrmuizel
This commit is contained in:
Родитель
6f1c5a20d8
Коммит
79321c56de
|
@ -503,7 +503,13 @@ gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurfa
|
|||
void *userData = aSurface->GetData(&kSourceSurface);
|
||||
|
||||
if (userData) {
|
||||
return static_cast<SourceSurface*>(userData);
|
||||
SourceSurface *surf = static_cast<SourceSurface*>(userData);
|
||||
|
||||
if (surf->IsValid()) {
|
||||
return surf;
|
||||
}
|
||||
// We can just continue here as when setting new user data the destroy
|
||||
// function will be called for the old user data.
|
||||
}
|
||||
|
||||
SurfaceFormat format;
|
||||
|
|
Загрузка…
Ссылка в новой задаче