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

Side by Side Diff: chrome/gpu/arc_video_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
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_VIDEO_ACCELERATOR_H_ 5 #ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 uint32_t crop_width = 0; 48 uint32_t crop_width = 0;
49 uint32_t crop_top = 0; 49 uint32_t crop_top = 0;
50 uint32_t crop_height = 0; 50 uint32_t crop_height = 0;
51 }; 51 };
52 52
53 // The IPC interface between Android and Chromium for video decoding and 53 // The IPC interface between Android and Chromium for video decoding and
54 // encoding. Input buffers are sent from Android side and get processed in 54 // encoding. Input buffers are sent from Android side and get processed in
55 // Chromium and the output buffers are returned back to Android side. 55 // Chromium and the output buffers are returned back to Android side.
56 class ArcVideoAccelerator { 56 class ArcVideoAccelerator {
57 public: 57 public:
58 enum Result { 58 enum Result {
Pawel Osciak 2016/11/22 04:04:48 Please add a comment: "Note: this enum is used fo
johnylin1 2016/11/22 07:03:40 Done.
59 SUCCESS = 0, 59 SUCCESS = 0,
60 ILLEGAL_STATE = 1, 60 ILLEGAL_STATE = 1,
61 INVALID_ARGUMENT = 2, 61 INVALID_ARGUMENT = 2,
62 UNREADABLE_INPUT = 3, 62 UNREADABLE_INPUT = 3,
63 PLATFORM_FAILURE = 4, 63 PLATFORM_FAILURE = 4,
64 INSUFFICIENT_RESOURCES = 5, 64 INSUFFICIENT_RESOURCES = 5,
65 RESULT_MAX = 6,
65 }; 66 };
66 67
67 struct Config { 68 struct Config {
68 enum DeviceType { 69 enum DeviceType {
69 DEVICE_ENCODER = 0, 70 DEVICE_ENCODER = 0,
70 DEVICE_DECODER = 1, 71 DEVICE_DECODER = 1,
71 }; 72 };
72 73
73 DeviceType device_type = DEVICE_DECODER; 74 DeviceType device_type = DEVICE_DECODER;
74 size_t num_input_buffers = 0; 75 size_t num_input_buffers = 0;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // called. 158 // called.
158 virtual void Flush() = 0; 159 virtual void Flush() = 0;
159 160
160 virtual ~ArcVideoAccelerator() {} 161 virtual ~ArcVideoAccelerator() {}
161 }; 162 };
162 163
163 } // namespace arc 164 } // namespace arc
164 } // namespace chromeos 165 } // namespace chromeos
165 166
166 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 167 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698