#include <assert.h>
-#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,
int stride_y,
int stride_u,
int stride_v) {
- NOTREACHED();
+ assert(false); // Should not be called.
return -1;
}
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(); }