OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 // To regenerate SkPMetricUtil_generated.h, simply run ./generate_pmetric_tables
.py | 7 // To regenerate SkPMetricUtil_generated.h, simply run ./generate_pmetric_tables
.py |
8 namespace SkPMetricUtil { | 8 namespace SkPMetricUtil { |
9 static float gCubeRootTable[] = { | 9 static float gCubeRootTable[] = { |
10 0.0000000000f,0.0992125657f,0.1250000000f,0.1430892803f,0.1574901312f,0.1696
511010f, | 10 0.0000000000f,0.0992125657f,0.1250000000f,0.1430892803f,0.1574901312f,0.1696
511010f, |
(...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 331.5898095702f,331.6480686385f,331.7063233212f,331.7645736196f,331.82281953
51f,331.8810610693f, | 2577 331.5898095702f,331.6480686385f,331.7063233212f,331.7645736196f,331.82281953
51f,331.8810610693f, |
2578 331.9392982234f,331.9975309989f,332.0557593973f,332.1139834200f,332.17220306
84f,332.2304183439f, | 2578 331.9392982234f,331.9975309989f,332.0557593973f,332.1139834200f,332.17220306
84f,332.2304183439f, |
2579 332.2886292480f,332.3468357821f,332.4050379475f,332.4632357458f, | 2579 332.2886292480f,332.3468357821f,332.4050379475f,332.4632357458f, |
2580 }; | 2580 }; |
2581 static float get_visual_mask(float value) { | 2581 static float get_visual_mask(float value) { |
2582 SkASSERT(value >= 0.0f); | 2582 SkASSERT(value >= 0.0f); |
2583 SkASSERT(value < 4000.0f); | 2583 SkASSERT(value < 4000.0f); |
2584 return gVisualMaskTable[(int)value]; | 2584 return gVisualMaskTable[(int)value]; |
2585 } | 2585 } |
2586 } | 2586 } |
OLD | NEW |