/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef WindowContextFactory_win_DEFINED #define WindowContextFactory_win_DEFINED #include #include namespace skwindow { class WindowContext; class DisplayParams; #ifdef SK_VULKAN std::unique_ptr MakeVulkanForWin(HWND, std::unique_ptr); #if defined(SK_GRAPHITE) std::unique_ptr MakeGraphiteVulkanForWin(HWND, std::unique_ptr); #endif #endif #ifdef SK_GL std::unique_ptr MakeGLForWin(HWND, std::unique_ptr); #endif #ifdef SK_ANGLE std::unique_ptr MakeANGLEForWin(HWND, std::unique_ptr); #endif #ifdef SK_DIRECT3D std::unique_ptr MakeD3D12ForWin(HWND, std::unique_ptr); #endif #ifdef SK_DAWN #if defined(SK_GRAPHITE) std::unique_ptr MakeGraphiteDawnD3D12ForWin(HWND, std::unique_ptr); #endif #endif std::unique_ptr MakeRasterForWin(HWND, std::unique_ptr); } // namespace skwindow #endif