 
 class Loader
 {
-    public function Loader (toLoad :Object, scaleFactor :Number) {
+    public function Loader (toLoad :Object, scaleFactor :Number, generateMipMaps :Boolean) {
         _scaleFactor = (scaleFactor > 0 ? scaleFactor : Starling.contentScaleFactor);
+        _generateMipMaps = generateMipMaps;
         _toLoad = toLoad;
     }
 

     * textures with multiple scale factors, loader will load the textures with the scale factor
     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
     * used.
     *
     * @return a Future to use to track the success or failure of loading the resources out of the
     * bytes. If the loading succeeds, the Future's onSuccess will fire with an instance of
     * Library. If it fails, the Future's onFail will fire with the Error that caused the
     * loading failure.
     */
    public static function loadBytes (bytes :ByteArray, executor :Executor=null, scaleFactor :Number=-1) :Future {
        return (executor || new Executor(1)).submit(new Loader(bytes, scaleFactor).load);
    }

    /**

            var scale :Number = atlas.scaleFactor;
            const baseTexture :Texture = Texture.fromBitmapData(
                img.bitmapData,
                _generateMipMaps,
                false,  // optimizeForRenderToTexture
                scale);

