Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
d3d
GrD3DUtil.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2020 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
8
#include "
src/gpu/ganesh/d3d/GrD3DUtil.h
"
9
10
#include "
src/gpu/ganesh/GrDataUtils.h
"
11
#include "
src/gpu/ganesh/GrDirectContextPriv.h
"
12
#include "
src/gpu/ganesh/d3d/GrD3DGpu.h
"
13
#include "
src/sksl/SkSLCompiler.h
"
14
15
bool
GrDxgiFormatIsCompressed
(DXGI_FORMAT
format
) {
16
switch
(
format
) {
17
case
DXGI_FORMAT_BC1_UNORM:
18
return
true
;
19
default
:
20
return
false
;
21
}
22
SkUNREACHABLE
;
23
}
24
25
std::wstring
GrD3DMultiByteToWide
(
const
std::string& str) {
26
int
size_needed = MultiByteToWideChar(CP_UTF8, 0, &str[0], (
int
)str.size(),
nullptr
, 0);
27
std::wstring wstr(size_needed, 0);
28
MultiByteToWideChar(CP_UTF8, 0, &str[0], (
int
)str.size(), &wstr[0], size_needed);
29
return
wstr;
30
}
GrD3DGpu.h
GrD3DMultiByteToWide
std::wstring GrD3DMultiByteToWide(const std::string &str)
Definition:
GrD3DUtil.cpp:25
GrDxgiFormatIsCompressed
bool GrDxgiFormatIsCompressed(DXGI_FORMAT format)
Definition:
GrD3DUtil.cpp:15
GrD3DUtil.h
GrDataUtils.h
GrDirectContextPriv.h
SkUNREACHABLE
#define SkUNREACHABLE
Definition:
SkAssert.h:135
SkSLCompiler.h
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
Generated on Sun Jun 23 2024 21:56:17 for Flutter Engine by
1.9.4