Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/common/gpu/media/generic_v4l2_video_device.h

Issue 730693005: Generalize V4L2 HW video codec device names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains the implementation of ExynosV4L2Device used on 5 // This file contains the implementation of GenericV4L2Device used on
6 // Exynos platform. 6 // Generic platform.
7 7
8 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ 8 #ifndef CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_
9 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ 9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_
10 10
11 #include "content/common/gpu/media/v4l2_video_device.h" 11 #include "content/common/gpu/media/v4l2_video_device.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class ExynosV4L2Device : public V4L2Device { 15 class GenericV4L2Device : public V4L2Device {
16 public: 16 public:
17 explicit ExynosV4L2Device(Type type); 17 explicit GenericV4L2Device(Type type);
18 virtual ~ExynosV4L2Device(); 18 virtual ~GenericV4L2Device();
19 19
20 // V4L2Device implementation. 20 // V4L2Device implementation.
21 virtual int Ioctl(int request, void* arg) override; 21 virtual int Ioctl(int request, void* arg) override;
22 virtual bool Poll(bool poll_device, bool* event_pending) override; 22 virtual bool Poll(bool poll_device, bool* event_pending) override;
23 virtual bool SetDevicePollInterrupt() override; 23 virtual bool SetDevicePollInterrupt() override;
24 virtual bool ClearDevicePollInterrupt() override; 24 virtual bool ClearDevicePollInterrupt() override;
25 virtual void* Mmap(void* addr, 25 virtual void* Mmap(void* addr,
26 unsigned int len, 26 unsigned int len,
27 int prot, 27 int prot,
28 int flags, 28 int flags,
(...skipping 15 matching lines...) Expand all
44 private: 44 private:
45 const Type type_; 45 const Type type_;
46 46
47 // The actual device fd. 47 // The actual device fd.
48 int device_fd_; 48 int device_fd_;
49 49
50 // eventfd fd to signal device poll thread when its poll() should be 50 // eventfd fd to signal device poll thread when its poll() should be
51 // interrupted. 51 // interrupted.
52 int device_poll_interrupt_fd_; 52 int device_poll_interrupt_fd_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(ExynosV4L2Device); 54 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device);
55 }; 55 };
56 } // namespace content 56 } // namespace content
57 57
58 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ 58 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/exynos_v4l2_video_device.cc ('k') | content/common/gpu/media/generic_v4l2_video_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698