WindowContextFactory_android.h 670 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2016 Google Inc.
  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. #ifndef WindowContextFactory_android_DEFINED
  8. #define WindowContextFactory_android_DEFINED
  9. #include <android/native_window_jni.h>
  10. namespace sk_app {
  11. class WindowContext;
  12. struct DisplayParams;
  13. namespace window_context_factory {
  14. WindowContext* NewVulkanForAndroid(ANativeWindow*, const DisplayParams&);
  15. WindowContext* NewGLForAndroid(ANativeWindow*, const DisplayParams&);
  16. WindowContext* NewRasterForAndroid(ANativeWindow*, const DisplayParams&);
  17. } // namespace window_context_factory
  18. } // namespace sk_app
  19. #endif