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
|
|
|
|
|
2017-02-28 00:00:53 +00:00
|
|
|
#include "GrContextOptions.h"
|
2016-05-06 20:28:57 +00:00
|
|
|
#include "SkImageInfo.h"
|
|
|
|
|
|
|
|
namespace sk_app {
|
|
|
|
|
|
|
|
struct DisplayParams {
|
|
|
|
DisplayParams()
|
|
|
|
: fColorType(kN32_SkColorType)
|
2016-06-16 20:03:24 +00:00
|
|
|
, fColorSpace(nullptr)
|
2017-02-08 15:47:28 +00:00
|
|
|
, fMSAASampleCount(0) {}
|
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;
|
2016-05-06 20:28:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace sk_app
|
|
|
|
|
|
|
|
#endif
|