web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
525 B

  1. /*
  2. Copyright 2019 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import { PrecacheController } from '../PrecacheController.js';
  8. import '../_version.js';
  9. let precacheController;
  10. /**
  11. * @return {PrecacheController}
  12. * @private
  13. */
  14. export const getOrCreatePrecacheController = () => {
  15. if (!precacheController) {
  16. precacheController = new PrecacheController();
  17. }
  18. return precacheController;
  19. };