Flutter Engine
The Flutter Engine
DisplayParams.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 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#ifndef DisplayParams_DEFINED
8#define DisplayParams_DEFINED
9
14
15#if defined(SK_GRAPHITE)
18#endif
19
20namespace skwindow {
21
22#if defined(SK_GRAPHITE)
23struct GraphiteContextOptions {
24 GraphiteContextOptions() {
25 fOptions.fOptionsPriv = &fPriv;
26 }
27
28 GraphiteContextOptions(const GraphiteContextOptions& other)
29 : fOptions(other.fOptions)
30 , fPriv(other.fPriv) {
31 fOptions.fOptionsPriv = &fPriv;
32 }
33
34 GraphiteContextOptions& operator=(const GraphiteContextOptions& other) {
35 fOptions = other.fOptions;
36 fPriv = other.fPriv;
37 fOptions.fOptionsPriv = &fPriv;
38 return *this;
39 }
40
43};
44
45#endif
46
49 : fColorType(kN32_SkColorType)
50 , fColorSpace(nullptr)
56 {}
57
62#if defined(SK_GRAPHITE)
63 GraphiteContextOptions fGraphiteContextOptions;
64#if defined(SK_DAWN)
65 bool fDisableTintSymbolRenaming = false;
66#endif
67#endif
72};
73
74} // namespace skwindow
75
76#endif
SkColorType
Definition: SkColorType.h:19
@ kRGB_H_SkPixelGeometry
SkSurfaceProps fSurfaceProps
Definition: DisplayParams.h:68
GrContextOptions fGrContextOptions
Definition: DisplayParams.h:61
sk_sp< SkColorSpace > fColorSpace
Definition: DisplayParams.h:59