summaryrefslogtreecommitdiff
path: root/chromium/media/capture/video/video_capture_buffer_handle.cc
blob: 40f8c92c331a3284e2809f3c01ffe4e27494283a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/capture/video/video_capture_buffer_handle.h"

#include <ostream>

#include "base/notreached.h"

namespace media {

NullHandle::NullHandle() = default;

NullHandle::~NullHandle() = default;

size_t NullHandle::mapped_size() const {
  NOTREACHED() << "Unsupported operation";
  return 0;
}

uint8_t* NullHandle::data() const {
  NOTREACHED() << "Unsupported operation";
  return nullptr;
}

const uint8_t* NullHandle::const_data() const {
  NOTREACHED() << "Unsupported operation";
  return nullptr;
}

}  // namespace media