cpu_modules.cpp 783 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2019 Google LLC
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #include "modules/particles/include/SkParticleAffector.h"
  8. #include "modules/particles/include/SkParticleDrawable.h"
  9. #include "modules/particles/include/SkParticleEffect.h"
  10. #include "modules/particles/include/SkParticleSerialization.h"
  11. #include "modules/particles/include/SkReflected.h"
  12. // Doesn't do anything important; just exists to show we can use modules/particles without the GPU
  13. // backend being available.
  14. int main(int argc, char** argv) {
  15. // Register types for serialization
  16. REGISTER_REFLECTED(SkReflected);
  17. SkParticleAffector::RegisterAffectorTypes();
  18. SkParticleDrawable::RegisterDrawableTypes();
  19. return 0;
  20. }