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

Side by Side Diff: chrome/gpu/arc_gpu_video_decode_accelerator.h

Issue 2506363003: Add Media.ArcGpuVideoDecodeAccelerator.InitializeResult to histograms (Closed)
Patch Set: Add Media.ArcGpuVideoDecodeAccelerator.InitializeResult to histograms Created 4 years, 1 month 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 | « no previous file | chrome/gpu/arc_gpu_video_decode_accelerator.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <queue> 10 #include <queue>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // The information about the dmabuf used as an output buffer. 98 // The information about the dmabuf used as an output buffer.
99 struct OutputBufferInfo { 99 struct OutputBufferInfo {
100 base::ScopedFD handle; 100 base::ScopedFD handle;
101 std::vector<DmabufPlane> planes; 101 std::vector<DmabufPlane> planes;
102 102
103 OutputBufferInfo(); 103 OutputBufferInfo();
104 OutputBufferInfo(OutputBufferInfo&& other); 104 OutputBufferInfo(OutputBufferInfo&& other);
105 ~OutputBufferInfo(); 105 ~OutputBufferInfo();
106 }; 106 };
107 107
108 // The helper method to simplify reporting of the status returned to UMA.
109 ArcVideoAccelerator::Result InitializeTask(
110 const Config& config,
111 ArcVideoAccelerator::Client* client);
112
108 // Helper function to validate |port| and |index|. 113 // Helper function to validate |port| and |index|.
109 bool ValidatePortAndIndex(PortType port, uint32_t index) const; 114 bool ValidatePortAndIndex(PortType port, uint32_t index) const;
110 115
111 // Return true if |dmabuf_planes| is valid for a dmabuf |fd|. 116 // Return true if |dmabuf_planes| is valid for a dmabuf |fd|.
112 bool VerifyDmabuf(const base::ScopedFD& fd, 117 bool VerifyDmabuf(const base::ScopedFD& fd,
113 const std::vector<DmabufPlane>& dmabuf_planes) const; 118 const std::vector<DmabufPlane>& dmabuf_planes) const;
114 119
115 // Creates an InputRecord for the given |bitstream_buffer_id|. The 120 // Creates an InputRecord for the given |bitstream_buffer_id|. The
116 // |buffer_index| is the index of the associated input buffer. The |timestamp| 121 // |buffer_index| is the index of the associated input buffer. The |timestamp|
117 // is the time the video frame should be displayed. 122 // is the time the video frame should be displayed.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 170
166 gpu::GpuPreferences gpu_preferences_; 171 gpu::GpuPreferences gpu_preferences_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); 173 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator);
169 }; 174 };
170 175
171 } // namespace arc 176 } // namespace arc
172 } // namespace chromeos 177 } // namespace chromeos
173 178
174 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ 179 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/gpu/arc_gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698