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
   33
   34
   35
   36
   37
   38
   39
   40

media / gpu / windows / d3d11_vp9_picture.h [blame]

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_GPU_WINDOWS_D3D11_VP9_PICTURE_H_
#define MEDIA_GPU_WINDOWS_D3D11_VP9_PICTURE_H_

#include "base/memory/raw_ptr.h"
#include "media/gpu/vp9_picture.h"

#include "media/gpu/windows/d3d11_picture_buffer.h"
#include "media/gpu/windows/d3d11_video_decoder_client.h"

namespace media {

class D3D11PictureBuffer;

class D3D11VP9Picture : public VP9Picture {
 public:
  explicit D3D11VP9Picture(D3D11PictureBuffer* picture_buffer,
                           D3D11VideoDecoderClient* client);

  D3D11PictureBuffer* picture_buffer() const { return picture_buffer_; }

  size_t picture_index() const { return picture_index_; }

 protected:
  ~D3D11VP9Picture() override;

  scoped_refptr<VP9Picture> CreateDuplicate() override;

 private:
  raw_ptr<D3D11PictureBuffer> picture_buffer_;
  raw_ptr<D3D11VideoDecoderClient> client_;
  size_t picture_index_;
};

}  // namespace media

#endif  // MEDIA_GPU_WINDOWS_D3D11_VP9_PICTURE_H_