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 {
|
2018-02-03 01:32:49 +00:00
|
|
|
DisplayParams() : fColorType(kN32_SkColorType), fColorSpace(nullptr), fMSAASampleCount(1) {}
|
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
|