| Index: media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
|
| diff --git a/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h b/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
|
| deleted file mode 100644
|
| index 5dcefbfeb5490f57e2bbf785b9f92f6065006808..0000000000000000000000000000000000000000
|
| --- a/media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h
|
| +++ /dev/null
|
| @@ -1,76 +0,0 @@
|
| -// Copyright 2015 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.
|
| -
|
| -#ifndef MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_
|
| -#define MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_
|
| -
|
| -#include <stdint.h>
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/macros.h"
|
| -#include "base/memory/weak_ptr.h"
|
| -#include "base/sequence_checker.h"
|
| -#include "media/video/jpeg_decode_accelerator.h"
|
| -
|
| -namespace base {
|
| -class SingleThreadTaskRunner;
|
| -}
|
| -
|
| -namespace gpu {
|
| -class GpuChannelHost;
|
| -}
|
| -
|
| -namespace IPC {
|
| -class Listener;
|
| -class Message;
|
| -}
|
| -
|
| -namespace media {
|
| -
|
| -// TODO(c.padhi): Move GpuJpegDecodeAcceleratorHost to media/gpu/mojo, see
|
| -// http://crbug.com/699255.
|
| -// This class is used to talk to JpegDecodeAccelerator in the GPU process
|
| -// through IPC messages.
|
| -class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator {
|
| - public:
|
| - GpuJpegDecodeAcceleratorHost(
|
| - scoped_refptr<gpu::GpuChannelHost> channel,
|
| - int32_t route_id,
|
| - const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
|
| - ~GpuJpegDecodeAcceleratorHost() override;
|
| -
|
| - // JpegDecodeAccelerator implementation.
|
| - // |client| is called on the IO thread, but is never called into after the
|
| - // GpuJpegDecodeAcceleratorHost is destroyed.
|
| - bool Initialize(JpegDecodeAccelerator::Client* client) override;
|
| - void Decode(const BitstreamBuffer& bitstream_buffer,
|
| - const scoped_refptr<VideoFrame>& video_frame) override;
|
| - bool IsSupported() override;
|
| -
|
| - base::WeakPtr<IPC::Listener> GetReceiver();
|
| -
|
| - private:
|
| - class Receiver;
|
| -
|
| - void Send(IPC::Message* message);
|
| -
|
| - scoped_refptr<gpu::GpuChannelHost> channel_;
|
| -
|
| - // Route ID for the associated decoder in the GPU process.
|
| - int32_t decoder_route_id_;
|
| -
|
| - // GPU IO task runner.
|
| - scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
|
| -
|
| - std::unique_ptr<Receiver> receiver_;
|
| -
|
| - SEQUENCE_CHECKER(sequence_checker_);
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost);
|
| -};
|
| -
|
| -} // namespace media
|
| -
|
| -#endif // MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_
|
|
|