reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 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 | |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 8 | #ifndef SkDeviceProperties_DEFINED |
| 9 | #define SkDeviceProperties_DEFINED |
| 10 | |
reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 11 | #include "SkSurfacePriv.h" |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 12 | |
| 13 | struct SkDeviceProperties { |
reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 14 | enum InitType { |
| 15 | kLegacyLCD_InitType |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 16 | }; |
reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 17 | SkDeviceProperties(InitType) : fPixelGeometry(SkSurfacePropsDefaultPixelGeometry()) {} |
| 18 | SkDeviceProperties(SkPixelGeometry geo) : fPixelGeometry(geo) {} |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 19 | |
reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 20 | SkPixelGeometry fPixelGeometry; |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 21 | |
reed | 3716fd0 | 2014-09-21 09:39:55 -0700 | [diff] [blame^] | 22 | // read-only attribute -- until we actually store a value (future CL) |
| 23 | float getGamma() const { return SK_GAMMA_EXPONENT; } |
bungeman@google.com | 532470f | 2013-01-22 19:25:14 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | #endif |