/* -*- 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/. */
class ClippedImageCachedSurface; class DrawSingleTileCallback;
/** * An Image wrapper that clips an image against a rectangle. Right now only * absolute coordinates in pixels are supported. * * XXX(seth): There a known (performance, not correctness) issue with * GetImageContainer. See the comments for that method for more information.
*/ class ClippedImage : public ImageWrapper { typedef gfx::SourceSurface SourceSurface;
// If we are forced to draw a temporary surface, we cache it here.
UniquePtr<ClippedImageCachedSurface> mCachedSurface;
nsIntRect mClip; // The region to clip to.
Maybe<bool> mShouldClip; // Memoized ShouldClip() if present.
Maybe<nsIntSize> mSVGViewportSize; // If we're clipping a VectorImage, this // is the size of viewport of that image. friendclass DrawSingleTileCallback; friendclass ImageOps;
};
} // namespace image
} // namespace mozilla
#endif// mozilla_image_ClippedImage_h
¤ Dauer der Verarbeitung: 0.14 Sekunden
(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.