Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4095)

Unified Diff: chrome/browser/chromeos/display/overscan_calibrator.cc

Issue 1477433005: Remove kuint8max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint4
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
+
+#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));

Powered by Google App Engine
This is Rietveld 408576698