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

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 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
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | media/cdm/ppapi/cdm_file_io_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f173b46fa805de4c01a79f041892760af520e4d8..86fa15e663c57c8785e734e973c0a4a11bc7cd4c 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, 0);
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | media/cdm/ppapi/cdm_file_io_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698