1/* 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 8#ifndef SkDeviceProperties_DEFINED 9#define SkDeviceProperties_DEFINED 10 11#include "SkSurfacePriv.h" 12 13struct SkDeviceProperties { 14 enum InitType { 15 kLegacyLCD_InitType 16 }; 17 SkDeviceProperties(InitType) : fPixelGeometry(SkSurfacePropsDefaultPixelGeometry()) {} 18 SkDeviceProperties(SkPixelGeometry geo) : fPixelGeometry(geo) {} 19 20 SkPixelGeometry fPixelGeometry; 21 22 // read-only attribute -- until we actually store a value (future CL) 23 float getGamma() const { return SK_GAMMA_EXPONENT; } 24}; 25 26#endif 27