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

Unified Diff: media/capture/video/mac/video_capture_device_mac.mm

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
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 | « media/base/android/sdk_media_codec_bridge.cc ('k') | media/formats/mp4/box_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/mac/video_capture_device_mac.mm
diff --git a/media/capture/video/mac/video_capture_device_mac.mm b/media/capture/video/mac/video_capture_device_mac.mm
index 34c38f7322ba1ff9aeff82e576ab39d223827b44..d96670b178c244b953bd79c02fe1e5bd3d4a0e9a 100644
--- a/media/capture/video/mac/video_capture_device_mac.mm
+++ b/media/capture/video/mac/video_capture_device_mac.mm
@@ -7,6 +7,9 @@
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/usb/USBSpec.h>
+#include <stdint.h>
+
+#include <limits>
#include "base/bind.h"
#include "base/location.h"
@@ -96,7 +99,7 @@ typedef struct IOUSBInterfaceDescriptor {
} IOUSBInterfaceDescriptor;
static void GetBestMatchSupportedResolution(gfx::Size* resolution) {
- int min_diff = kint32max;
+ int min_diff = std::numeric_limits<int32_t>::max();
const int desired_area = resolution->GetArea();
for (size_t i = 0; i < arraysize(kWellSupportedResolutions); ++i) {
const int area = kWellSupportedResolutions[i]->width *
« no previous file with comments | « media/base/android/sdk_media_codec_bridge.cc ('k') | media/formats/mp4/box_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698