Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / common_video / texture_video_frame.cc
index ea53dc2..2dd6cad 100644 (file)
 
 #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,
@@ -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(); }