blob: 11ecd651570dcb4c9cfc5994b2be83a93a98f4eb [file] [log] [blame]
reed3716fd02014-09-21 09:39:55 -07001/*
2 * Copyright 2014 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
bungeman@google.com532470f2013-01-22 19:25:14 +00008#ifndef SkDeviceProperties_DEFINED
9#define SkDeviceProperties_DEFINED
10
reed3716fd02014-09-21 09:39:55 -070011#include "SkSurfacePriv.h"
bungeman@google.com532470f2013-01-22 19:25:14 +000012
13struct SkDeviceProperties {
reed3716fd02014-09-21 09:39:55 -070014 enum InitType {
15 kLegacyLCD_InitType
bungeman@google.com532470f2013-01-22 19:25:14 +000016 };
reed3716fd02014-09-21 09:39:55 -070017 SkDeviceProperties(InitType) : fPixelGeometry(SkSurfacePropsDefaultPixelGeometry()) {}
18 SkDeviceProperties(SkPixelGeometry geo) : fPixelGeometry(geo) {}
bungeman@google.com532470f2013-01-22 19:25:14 +000019
reed3716fd02014-09-21 09:39:55 -070020 SkPixelGeometry fPixelGeometry;
bungeman@google.com532470f2013-01-22 19:25:14 +000021
reed3716fd02014-09-21 09:39:55 -070022 // read-only attribute -- until we actually store a value (future CL)
23 float getGamma() const { return SK_GAMMA_EXPONENT; }
bungeman@google.com532470f2013-01-22 19:25:14 +000024};
25
26#endif