Bug 1415085 - Make CachedSurface::GetSurfaceKey return a reference instead of a copy. r=decoder

This commit is contained in:
Andrew Osmond 2017-11-07 08:10:01 -05:00
Родитель 2ab91577de
Коммит 1068bf07ec
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -168,7 +168,7 @@ public:
bool IsDecoded() const { return !IsPlaceholder() && mProvider->IsFinished(); }
ImageKey GetImageKey() const { return mProvider->GetImageKey(); }
SurfaceKey GetSurfaceKey() const { return mProvider->GetSurfaceKey(); }
const SurfaceKey& GetSurfaceKey() const { return mProvider->GetSurfaceKey(); }
nsExpirationState* GetExpirationState() { return &mExpirationState; }
CostEntry GetCostEntry()