| Index: content/common/gpu/media/exynos_v4l2_video_device.h
|
| diff --git a/content/common/gpu/media/exynos_v4l2_video_device.h b/content/common/gpu/media/exynos_v4l2_video_device.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d1498a66e1859f94bb780c089c673263553a71b9
|
| --- /dev/null
|
| +++ b/content/common/gpu/media/exynos_v4l2_video_device.h
|
| @@ -0,0 +1,58 @@
|
| +// Copyright 2014 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.
|
| +//
|
| +// This file contains the implementation of ExynosV4L2Device used on
|
| +// Exynos platform.
|
| +
|
| +#ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_
|
| +#define CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_
|
| +
|
| +#include "content/common/gpu/media/v4l2_video_device.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ExynosV4L2Device : public V4L2Device {
|
| + public:
|
| + explicit ExynosV4L2Device(Type type);
|
| + virtual ~ExynosV4L2Device();
|
| +
|
| + // V4L2Device implementation.
|
| + virtual int Ioctl(int request, void* arg) override;
|
| + virtual bool Poll(bool poll_device, bool* event_pending) override;
|
| + virtual bool SetDevicePollInterrupt() override;
|
| + virtual bool ClearDevicePollInterrupt() override;
|
| + virtual void* Mmap(void* addr,
|
| + unsigned int len,
|
| + int prot,
|
| + int flags,
|
| + unsigned int offset) override;
|
| + virtual void Munmap(void* addr, unsigned int len) override;
|
| + virtual bool Initialize() override;
|
| + virtual EGLImageKHR CreateEGLImage(EGLDisplay egl_display,
|
| + EGLContext egl_context,
|
| + GLuint texture_id,
|
| + gfx::Size frame_buffer_size,
|
| + unsigned int buffer_index,
|
| + size_t planes_count) override;
|
| + virtual EGLBoolean DestroyEGLImage(EGLDisplay egl_display,
|
| + EGLImageKHR egl_image) override;
|
| + virtual GLenum GetTextureTarget() override;
|
| + virtual uint32 PreferredInputFormat() override;
|
| + virtual uint32 PreferredOutputFormat() override;
|
| +
|
| + private:
|
| + const Type type_;
|
| +
|
| + // The actual device fd.
|
| + int device_fd_;
|
| +
|
| + // eventfd fd to signal device poll thread when its poll() should be
|
| + // interrupted.
|
| + int device_poll_interrupt_fd_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ExynosV4L2Device);
|
| +};
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_
|
|
|