Chromium Code Reviews| Index: chrome/browser/chromeos/display/overscan_calibrator.cc |
| diff --git a/chrome/browser/chromeos/display/overscan_calibrator.cc b/chrome/browser/chromeos/display/overscan_calibrator.cc |
| index cd679d93d8f50e05a0ea1a50fd9d7368675ad508..cc90b62f8b55fb21d1e05c90cb6a4d9121dc2b07 100644 |
| --- a/chrome/browser/chromeos/display/overscan_calibrator.cc |
| +++ b/chrome/browser/chromeos/display/overscan_calibrator.cc |
| @@ -4,6 +4,10 @@ |
| #include "chrome/browser/chromeos/display/overscan_calibrator.h" |
| +#include <stdint.h> |
| + |
|
stevenjb
2015/11/25 17:10:43
nit: no WS here?
Avi (use Gerrit)
2015/11/25 17:17:02
If you combine the C and C++ include block, presub
|
| +#include <limits> |
| + |
| #include "ash/display/display_info.h" |
| #include "ash/display/display_manager.h" |
| #include "ash/display/window_tree_host_manager.h" |
| @@ -38,10 +42,12 @@ void DrawTriangle(int x_offset, |
| // Draw triangular arrows. |
| SkPaint content_paint; |
| content_paint.setStyle(SkPaint::kFill_Style); |
| - content_paint.setColor(SkColorSetA(SK_ColorBLACK, kuint8max * kArrowOpacity)); |
| + content_paint.setColor(SkColorSetA( |
| + SK_ColorBLACK, std::numeric_limits<uint8_t>::max() * kArrowOpacity)); |
| SkPaint border_paint; |
| border_paint.setStyle(SkPaint::kStroke_Style); |
| - border_paint.setColor(SkColorSetA(SK_ColorWHITE, kuint8max * kArrowOpacity)); |
| + border_paint.setColor(SkColorSetA( |
| + SK_ColorWHITE, std::numeric_limits<uint8_t>::max() * kArrowOpacity)); |
| SkPath base_path; |
| base_path.moveTo(0, SkIntToScalar(-kCalibrationArrowHeight)); |