/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"FrozenImage.h"
namespace mozilla {
usingnamespace gfx; using layers::ImageContainer;
namespace image {
void FrozenImage::IncrementAnimationConsumers() { // Do nothing. This will prevent animation from starting if there are no other // instances of this image.
}
void FrozenImage::DecrementAnimationConsumers() { // Do nothing.
}
bool FrozenImage::IsNonAnimated() const { // We usually don't create frozen images for non-animated images, but it might // happen if we don't have enough data at the time of the creation to // determine whether the image is actually animated. bool animated = false; return NS_SUCCEEDED(InnerImage()->GetAnimated(&animated)) && !animated;
}
// XXX(seth): GetImageContainer does not currently support anything but the // current frame. We work around this by always returning null, but if it ever // turns out that FrozenImage is widely used on codepaths that can actually // benefit from GetImageContainer, it would be a good idea to fix that method // for performance reasons. return ImgDrawResult::NOT_SUPPORTED;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.26Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.