Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_COLOR_HALF_FLOAT_H_ | |
| 6 #define UI_GFX_COLOR_HALF_FLOAT_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 #include <stdlib.h> | |
| 10 | |
| 11 #include "ui/gfx/gfx_export.h" | |
| 12 | |
| 13 namespace gfx { | |
| 14 | |
| 15 typedef uint16_t HalfFloat; | |
| 16 | |
| 17 // Floats are expected to be within +/- 65535.0; | |
| 18 GFX_EXPORT void FloatToHalfFloat(const float* input, | |
| 19 HalfFloat* output, | |
|
ccameron
2017/01/24 18:38:49
I'd vaguely prefer output to be a void*, but let m
hubbe
2017/01/24 18:47:46
That doesn't sound like a good idea to me.
Any 2-b
| |
| 20 size_t num); | |
| 21 }; | |
| 22 #endif | |
| OLD | NEW |