summaryrefslogtreecommitdiffstats
path: root/media/video/video_decode_accelerator.cc
blob: a72912cf3059ac777c9314b99fc286baf8d09ad9 (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
// Copyright (c) 2011 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/video/video_decode_accelerator.h"

#include "base/logging.h"

namespace media {

VideoDecodeAccelerator::~VideoDecodeAccelerator() {}

bool VideoDecodeAccelerator::CanDecodeOnIOThread() {
  // GPU process subclasses must override this.
  LOG(FATAL) << "This should only get called in the GPU process";
  return false;  // not reached
}

} // namespace media

namespace base {

void DefaultDeleter<media::VideoDecodeAccelerator>::operator()(
    void* video_decode_accelerator) const {
  static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)->
      Destroy();
}

}  // namespace base