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

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

Issue 1097913002: Remove kIgnoreResolutionLimitsForAcceleratedVideoDecode flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 5 years, 8 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
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 CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_
9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ 9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_
10 10
(...skipping 25 matching lines...) Expand all
36 unsigned int buffer_index, 36 unsigned int buffer_index,
37 uint32_t v4l2_pixfmt, 37 uint32_t v4l2_pixfmt,
38 size_t num_v4l2_planes) override; 38 size_t num_v4l2_planes) override;
39 EGLBoolean DestroyEGLImage(EGLDisplay egl_display, 39 EGLBoolean DestroyEGLImage(EGLDisplay egl_display,
40 EGLImageKHR egl_image) override; 40 EGLImageKHR egl_image) override;
41 GLenum GetTextureTarget() override; 41 GLenum GetTextureTarget() override;
42 uint32 PreferredInputFormat() override; 42 uint32 PreferredInputFormat() override;
43 43
44 private: 44 private:
45 ~GenericV4L2Device() override; 45 ~GenericV4L2Device() override;
46 const Type type_;
47 46
48 // The actual device fd. 47 // The actual device fd.
49 int device_fd_; 48 int device_fd_;
50 49
51 // 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
52 // interrupted. 51 // interrupted.
53 int device_poll_interrupt_fd_; 52 int device_poll_interrupt_fd_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); 54 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device);
56 55
57 // Lazily initialize static data after sandbox is enabled. Return false on 56 // Lazily initialize static data after sandbox is enabled. Return false on
58 // init failure. 57 // init failure.
59 static bool PostSandboxInitialization(); 58 static bool PostSandboxInitialization();
60 }; 59 };
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ 62 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698