12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*global define*/
- define([
- '../Core/DeveloperError'
- ], function(
- DeveloperError) {
- "use strict";
- /**
- * A policy for discarding tile images according to some criteria. This type describes an
- * interface and is not intended to be instantiated directly.
- *
- * @alias TileDiscardPolicy
- * @constructor
- *
- * @see DiscardMissingTileImagePolicy
- * @see NeverTileDiscardPolicy
- */
- var TileDiscardPolicy = function(options) {
- DeveloperError.throwInstantiationError();
- };
- /**
- * Determines if the discard policy is ready to process images.
- * @function
- *
- * @returns {Boolean} True if the discard policy is ready to process images; otherwise, false.
- */
- TileDiscardPolicy.prototype.isReady = DeveloperError.throwInstantiationError;
- /**
- * Given a tile image, decide whether to discard that image.
- * @function
- *
- * @param {Image|Promise} image An image, or a promise that will resolve to an image.
- * @returns {Boolean} A promise that will resolve to true if the tile should be discarded.
- */
- TileDiscardPolicy.prototype.shouldDiscardImage = DeveloperError.throwInstantiationError;
- return TileDiscardPolicy;
- });
|