--- a/image/Decoder.h+++ b/image/Decoder.h@@ -232,16 +232,19 @@ public: /// Did we finish decoding enough to set |RasterImage::mHasBeenDecoded|? // XXX(seth): This will be removed in bug 1187401. bool GetDecodeTotallyDone() const { return mDecodeDone && !IsMetadataDecode(); } /// Are we in the middle of a frame right now? Used for assertions only. bool InFrame() const { return mInFrame; }+ /// Should we store surfaces created by this decoder in the SurfaceCache?+ bool ShouldUseSurfaceCache() const { return bool(mImage); }+ /** * Returns true if this decoder was aborted. * * This may happen due to a low-memory condition, or because another decoder * was racing with this one to decode the same frames with the same flags and * this decoder lost the race. Either way, this is not a permanent situation * and does not constitute an error, so we don't report any errors when this * happens.