Commit a008610b authored by sebmarchand's avatar sebmarchand Committed by Commit bot

Remove an useless ifndef NDEBUG in video_capture_types.cc

Let's let the compiler do its job :). As mentionned in https://codereview.chromium.org/532533002/ this preprocessor precondition is useless as the linker will removed the unreferenced code anyway, and this break the PGO build.

TBR=magjed, tommi
NOTRY=true

Review URL: https://codereview.chromium.org/546043003

Cr-Commit-Position: refs/heads/master@{#293667}
parent cb9416ec
...@@ -31,14 +31,12 @@ bool VideoCaptureFormat::IsValid() const { ...@@ -31,14 +31,12 @@ bool VideoCaptureFormat::IsValid() const {
(pixel_format < PIXEL_FORMAT_MAX); (pixel_format < PIXEL_FORMAT_MAX);
} }
#if !defined(NDEBUG)
std::string VideoCaptureFormat::ToString() const { std::string VideoCaptureFormat::ToString() const {
return base::StringPrintf("resolution: %s, fps: %f, pixel format: %s", return base::StringPrintf("resolution: %s, fps: %f, pixel format: %s",
frame_size.ToString().c_str(), frame_size.ToString().c_str(),
frame_rate, frame_rate,
PixelFormatToString(pixel_format).c_str()); PixelFormatToString(pixel_format).c_str());
} }
#endif
std::string VideoCaptureFormat::PixelFormatToString(VideoPixelFormat format) { std::string VideoCaptureFormat::PixelFormatToString(VideoPixelFormat format) {
switch (format) { switch (format) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment