Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
D3D12WindowContext_win.cpp File Reference
#include "include/core/SkSurface.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/d3d/GrD3DBackendContext.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "tools/gpu/d3d/D3DTestUtils.h"
#include "tools/window/DisplayParams.h"
#include "tools/window/WindowContext.h"
#include "tools/window/win/WindowContextFactory_win.h"
#include <d3d12.h>
#include <dxgi1_4.h>
#include <wrl/client.h>

Go to the source code of this file.

Namespaces

namespace  skwindow
 

Macros

#define GR_D3D_CALL_ERRCHECK(X)
 

Functions

std::unique_ptr< WindowContextskwindow::MakeD3D12ForWin (HWND hwnd, const DisplayParams &params)
 

Macro Definition Documentation

◆ GR_D3D_CALL_ERRCHECK

#define GR_D3D_CALL_ERRCHECK (   X)
Value:
do { \
HRESULT result = X; \
SkASSERT(SUCCEEDED(result)); \
if (!SUCCEEDED(result)) { \
SkDebugf("Failed Direct3D call. Error: 0x%08lx\n", result); \
} \
} while (false)
static const SkScalar X
Definition: StrokeBench.cpp:54
GAsyncResult * result
#define SUCCEEDED(hr)

Definition at line 23 of file D3D12WindowContext_win.cpp.