Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
70
71} // namespace skwindow
72
73#endif
SkColorType
Definition SkColorType.h:19
@ kRGB_H_SkPixelGeometry
SkSurfaceProps fSurfaceProps
GrContextOptions fGrContextOptions
sk_sp< SkColorSpace > fColorSpace