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

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

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots Created 4 years, 6 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 | « 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 base::ScopedFD dmabuf_fd, 45 base::ScopedFD dmabuf_fd,
46 int32_t stride) override; 46 int32_t stride) override;
47 void UseBuffer(PortType port, 47 void UseBuffer(PortType port,
48 uint32_t index, 48 uint32_t index,
49 const BufferMetadata& metadata) override; 49 const BufferMetadata& metadata) override;
50 void Reset() override; 50 void Reset() override;
51 void Flush() override; 51 void Flush() override;
52 52
53 // Implementation of the VideoDecodeAccelerator::Client interface. 53 // Implementation of the VideoDecodeAccelerator::Client interface.
54 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 54 void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
55 media::VideoPixelFormat output_format,
55 uint32_t textures_per_buffer, 56 uint32_t textures_per_buffer,
56 const gfx::Size& dimensions, 57 const gfx::Size& dimensions,
57 uint32_t texture_target) override; 58 uint32_t texture_target) override;
58 void DismissPictureBuffer(int32_t picture_buffer) override; 59 void DismissPictureBuffer(int32_t picture_buffer) override;
59 void PictureReady(const media::Picture& picture) override; 60 void PictureReady(const media::Picture& picture) override;
60 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; 61 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override;
61 void NotifyFlushDone() override; 62 void NotifyFlushDone() override;
62 void NotifyResetDone() override; 63 void NotifyResetDone() override;
63 void NotifyError(media::VideoDecodeAccelerator::Error error) override; 64 void NotifyError(media::VideoDecodeAccelerator::Error error) override;
64 65
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 149
149 gpu::GpuPreferences gpu_preferences_; 150 gpu::GpuPreferences gpu_preferences_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); 152 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator);
152 }; 153 };
153 154
154 } // namespace arc 155 } // namespace arc
155 } // namespace chromeos 156 } // namespace chromeos
156 157
157 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ 158 #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