diff --git a/webrtc/common_video/texture_video_frame.cc b/webrtc/common_video/texture_video_frame.cc index ea53dc25c..2dd6cadbe 100644 --- a/webrtc/common_video/texture_video_frame.cc +++ b/webrtc/common_video/texture_video_frame.cc @@ -12,14 +12,6 @@ #include -#include "webrtc/system_wrappers/interface/trace.h" - -#define NOTREACHED() \ - do { \ - WEBRTC_TRACE(kTraceError, kTraceVideoRenderer, -1, "Not reached"); \ - assert(false); \ - } while (0) - namespace webrtc { TextureVideoFrame::TextureVideoFrame(NativeHandle* handle, @@ -41,7 +33,7 @@ int TextureVideoFrame::CreateEmptyFrame(int width, int stride_y, int stride_u, int stride_v) { - NOTREACHED(); + assert(false); // Should not be called. return -1; } @@ -56,46 +48,46 @@ int TextureVideoFrame::CreateFrame(int size_y, int stride_y, int stride_u, int stride_v) { - NOTREACHED(); + assert(false); // Should not be called. return -1; } int TextureVideoFrame::CopyFrame(const I420VideoFrame& videoFrame) { - NOTREACHED(); + assert(false); // Should not be called. return -1; } void TextureVideoFrame::SwapFrame(I420VideoFrame* videoFrame) { - NOTREACHED(); + assert(false); // Should not be called. } uint8_t* TextureVideoFrame::buffer(PlaneType type) { - NOTREACHED(); + assert(false); // Should not be called. return NULL; } const uint8_t* TextureVideoFrame::buffer(PlaneType type) const { - NOTREACHED(); + assert(false); // Should not be called. return NULL; } int TextureVideoFrame::allocated_size(PlaneType type) const { - NOTREACHED(); + assert(false); // Should not be called. return -1; } int TextureVideoFrame::stride(PlaneType type) const { - NOTREACHED(); + assert(false); // Should not be called. return -1; } bool TextureVideoFrame::IsZeroSize() const { - NOTREACHED(); + assert(false); // Should not be called. return true; } void TextureVideoFrame::ResetSize() { - NOTREACHED(); + assert(false); // Should not be called. } void* TextureVideoFrame::native_handle() const { return handle_.get(); }