DisplayParams.h 867 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef DisplayParams_DEFINED
  8. #define DisplayParams_DEFINED
  9. #include "include/core/SkImageInfo.h"
  10. #include "include/core/SkSurfaceProps.h"
  11. #include "include/gpu/GrContextOptions.h"
  12. namespace sk_app {
  13. struct DisplayParams {
  14. DisplayParams()
  15. : fColorType(kN32_SkColorType)
  16. , fColorSpace(nullptr)
  17. , fMSAASampleCount(1)
  18. , fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)
  19. , fDisableVsync(false)
  20. {}
  21. SkColorType fColorType;
  22. sk_sp<SkColorSpace> fColorSpace;
  23. int fMSAASampleCount;
  24. GrContextOptions fGrContextOptions;
  25. SkSurfaceProps fSurfaceProps;
  26. bool fDisableVsync;
  27. };
  28. } // namespace sk_app
  29. #endif