2016-05-06 20:28:57 +00:00
|
|
|
/*
|
|
|
|
* 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 DisplayParams_DEFINED
|
|
|
|
#define DisplayParams_DEFINED
|
|
|
|
|
2022-03-31 19:07:44 +00:00
|
|
|
#include "include/core/SkColorSpace.h"
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkImageInfo.h"
|
|
|
|
#include "include/core/SkSurfaceProps.h"
|
|
|
|
#include "include/gpu/GrContextOptions.h"
|
2016-05-06 20:28:57 +00:00
|
|
|
|
|
|
|
namespace sk_app {
|
|
|
|
|
|
|
|
struct DisplayParams {
|
2018-04-13 18:30:23 +00:00
|
|
|
DisplayParams()
|
|
|
|
: fColorType(kN32_SkColorType)
|
|
|
|
, fColorSpace(nullptr)
|
|
|
|
, fMSAASampleCount(1)
|
2020-09-24 18:49:00 +00:00
|
|
|
, fSurfaceProps(0, kRGB_H_SkPixelGeometry)
|
2019-03-25 17:42:33 +00:00
|
|
|
, fDisableVsync(false)
|
2020-10-23 16:47:57 +00:00
|
|
|
, fDelayDrawableAcquisition(false)
|
2020-11-20 20:30:25 +00:00
|
|
|
, fEnableBinaryArchive(false)
|
2018-04-13 18:30:23 +00:00
|
|
|
{}
|
2016-05-06 20:28:57 +00:00
|
|
|
|
2016-06-16 20:03:24 +00:00
|
|
|
SkColorType fColorType;
|
|
|
|
sk_sp<SkColorSpace> fColorSpace;
|
|
|
|
int fMSAASampleCount;
|
2017-02-28 00:00:53 +00:00
|
|
|
GrContextOptions fGrContextOptions;
|
2018-04-13 18:30:23 +00:00
|
|
|
SkSurfaceProps fSurfaceProps;
|
2019-03-25 17:42:33 +00:00
|
|
|
bool fDisableVsync;
|
2020-10-23 16:47:57 +00:00
|
|
|
bool fDelayDrawableAcquisition;
|
2020-11-20 20:30:25 +00:00
|
|
|
bool fEnableBinaryArchive;
|
2016-05-06 20:28:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace sk_app
|
|
|
|
|
|
|
|
#endif
|