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

Side by Side Diff: content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.h

Issue 2573223002: [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: mcasas comments Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Implementation of VideoCaptureJpegDecoder: 49 // Implementation of VideoCaptureJpegDecoder:
50 void Initialize() override; 50 void Initialize() override;
51 STATUS GetStatus() const override; 51 STATUS GetStatus() const override;
52 void DecodeCapturedData( 52 void DecodeCapturedData(
53 const uint8_t* data, 53 const uint8_t* data,
54 size_t in_buffer_size, 54 size_t in_buffer_size,
55 const media::VideoCaptureFormat& frame_format, 55 const media::VideoCaptureFormat& frame_format,
56 base::TimeTicks reference_time, 56 base::TimeTicks reference_time,
57 base::TimeDelta timestamp, 57 base::TimeDelta timestamp,
58 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> out_buffer) 58 media::VideoCaptureDevice::Client::Buffer out_buffer) override;
59 override;
60 59
61 // JpegDecodeAccelerator::Client implementation. 60 // JpegDecodeAccelerator::Client implementation.
62 // These will be called on IO thread. 61 // These will be called on IO thread.
63 void VideoFrameReady(int32_t buffer_id) override; 62 void VideoFrameReady(int32_t buffer_id) override;
64 void NotifyError(int32_t buffer_id, 63 void NotifyError(int32_t buffer_id,
65 media::JpegDecodeAccelerator::Error error) override; 64 media::JpegDecodeAccelerator::Error error) override;
66 65
67 private: 66 private:
68 // Initialization helper, to establish GPU channel. 67 // Initialization helper, to establish GPU channel.
69 static void EstablishGpuChannelOnUIThread( 68 static void EstablishGpuChannelOnUIThread(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 std::unique_ptr<base::SharedMemory> in_shared_memory_; 108 std::unique_ptr<base::SharedMemory> in_shared_memory_;
110 109
111 STATUS decoder_status_; 110 STATUS decoder_status_;
112 111
113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureGpuJpegDecoder); 112 DISALLOW_COPY_AND_ASSIGN(VideoCaptureGpuJpegDecoder);
114 }; 113 };
115 114
116 } // namespace content 115 } // namespace content
117 116
118 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 117 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698