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
|
|
|
|
|
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)
|
|
|
|
, fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)
|
2019-03-25 17:42:33 +00:00
|
|
|
, fDisableVsync(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;
|
2016-05-06 20:28:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace sk_app
|
|
|
|
|
|
|
|
#endif
|