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

Side by Side Diff: media/gpu/generic_v4l2_device.h

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « media/gpu/fake_video_decode_accelerator.cc ('k') | media/gpu/generic_v4l2_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 GenericV4L2Device used on 5 // This file contains the implementation of GenericV4L2Device used on
6 // platforms, which provide generic V4L2 video codec devices. 6 // platforms, which provide generic V4L2 video codec devices.
7 7
8 #ifndef CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ 8 #ifndef MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ 9 #define MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
10 10
11 #include <stddef.h> 11 #include <stddef.h>
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include "base/files/scoped_file.h" 14 #include "base/files/scoped_file.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "content/common/gpu/media/v4l2_device.h" 16 #include "media/gpu/v4l2_device.h"
17 17
18 namespace content { 18 namespace media {
19 19
20 class GenericV4L2Device : public V4L2Device { 20 class GenericV4L2Device : public V4L2Device {
21 public: 21 public:
22 explicit GenericV4L2Device(Type type); 22 explicit GenericV4L2Device(Type type);
23 23
24 // V4L2Device implementation. 24 // V4L2Device implementation.
25 int Ioctl(int request, void* arg) override; 25 int Ioctl(int request, void* arg) override;
26 bool Poll(bool poll_device, bool* event_pending) override; 26 bool Poll(bool poll_device, bool* event_pending) override;
27 bool SetDevicePollInterrupt() override; 27 bool SetDevicePollInterrupt() override;
28 bool ClearDevicePollInterrupt() override; 28 bool ClearDevicePollInterrupt() override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Use libv4l2 when operating |device_fd_|. 67 // Use libv4l2 when operating |device_fd_|.
68 bool use_libv4l2_; 68 bool use_libv4l2_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); 70 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device);
71 71
72 // Lazily initialize static data after sandbox is enabled. Return false on 72 // Lazily initialize static data after sandbox is enabled. Return false on
73 // init failure. 73 // init failure.
74 static bool PostSandboxInitialization(); 74 static bool PostSandboxInitialization();
75 }; 75 };
76 } // namespace content 76 } // namespace media
77 77
78 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ 78 #endif // MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
OLDNEW
« no previous file with comments | « media/gpu/fake_video_decode_accelerator.cc ('k') | media/gpu/generic_v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698