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
|
|
|
|
|
|
|
|
#include "SkImageInfo.h"
|
|
|
|
|
|
|
|
namespace sk_app {
|
|
|
|
|
|
|
|
struct DisplayParams {
|
|
|
|
DisplayParams()
|
|
|
|
: fColorType(kN32_SkColorType)
|
2016-06-16 20:03:24 +00:00
|
|
|
, fColorSpace(nullptr)
|
2016-05-20 13:01:06 +00:00
|
|
|
, fMSAASampleCount(0)
|
|
|
|
, fDeepColor(false) {}
|
2016-05-06 20:28:57 +00:00
|
|
|
|
2016-06-16 20:03:24 +00:00
|
|
|
SkColorType fColorType;
|
|
|
|
sk_sp<SkColorSpace> fColorSpace;
|
|
|
|
int fMSAASampleCount;
|
|
|
|
bool fDeepColor;
|
2016-05-06 20:28:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace sk_app
|
|
|
|
|
|
|
|
#endif
|