2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkDeviceProperties_DEFINED
9 #define SkDeviceProperties_DEFINED
11 #include "SkSurfacePriv.h"
13 struct SkDeviceProperties {
17 SkDeviceProperties(InitType) : fPixelGeometry(SkSurfacePropsDefaultPixelGeometry()) {}
18 SkDeviceProperties(SkPixelGeometry geo) : fPixelGeometry(geo) {}
20 SkPixelGeometry fPixelGeometry;
22 // read-only attribute -- until we actually store a value (future CL)
23 float getGamma() const { return SK_GAMMA_EXPONENT; }