shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text$utils$getPo2TextureFromSource = function(global, require, module, exports) {
  var TexturePool = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TexturePool");
  global = require("module$node_modules$pixi_DOT_js$lib$scene$container$bounds$Bounds");
  "use strict";
  const tempBounds = new global.Bounds();
  exports.getPo2TextureFromSource = function(image, width, height, resolution, autoGenerateMipmaps = !1) {
    tempBounds.minX = 0;
    tempBounds.minY = 0;
    tempBounds.maxX = image.width / resolution | 0;
    tempBounds.maxY = image.height / resolution | 0;
    autoGenerateMipmaps = TexturePool.TexturePool.getOptimalTexture(tempBounds.width, tempBounds.height, resolution, !1, autoGenerateMipmaps);
    autoGenerateMipmaps.source.uploadMethodId = "image";
    autoGenerateMipmaps.source.resource = image;
    autoGenerateMipmaps.source.alphaMode = "premultiply-alpha-on-upload";
    autoGenerateMipmaps.frame.width = width / resolution;
    autoGenerateMipmaps.frame.height = height / resolution;
    autoGenerateMipmaps.source.emit("update", autoGenerateMipmaps.source);
    autoGenerateMipmaps.updateUvs();
    return autoGenerateMipmaps;
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text$utils$getPo2TextureFromSource.js.map
