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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_aura_unittest.cc

Issue 2618173002: Revert of Reland [Mojo Video Capture] Replace method OnIncomingCapturedVideoFrame() with OnIncomingCapturedBuf (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/browser/media/capture/desktop_capture_device_aura.h" 5 #include "content/browser/media/capture/desktop_capture_device_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 EXPECT_EQ(media::PIXEL_STORAGE_CPU, storage); 66 EXPECT_EQ(media::PIXEL_STORAGE_CPU, storage);
67 DoReserveOutputBuffer(); 67 DoReserveOutputBuffer();
68 return std::unique_ptr<Buffer>(); 68 return std::unique_ptr<Buffer>();
69 } 69 }
70 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer, 70 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer,
71 const media::VideoCaptureFormat& frame_format, 71 const media::VideoCaptureFormat& frame_format,
72 base::TimeTicks reference_time, 72 base::TimeTicks reference_time,
73 base::TimeDelta timestamp) override { 73 base::TimeDelta timestamp) override {
74 DoOnIncomingCapturedBuffer(); 74 DoOnIncomingCapturedBuffer();
75 } 75 }
76 void OnIncomingCapturedBufferExt( 76 void OnIncomingCapturedVideoFrame(
77 std::unique_ptr<Buffer> buffer, 77 std::unique_ptr<Buffer> buffer,
78 const media::VideoCaptureFormat& format, 78 scoped_refptr<media::VideoFrame> frame) override {
79 base::TimeTicks reference_time,
80 base::TimeDelta timestamp,
81 gfx::Rect visible_rect,
82 const media::VideoFrameMetadata& additional_metadata) override {
83 DoOnIncomingCapturedVideoFrame(); 79 DoOnIncomingCapturedVideoFrame();
84 } 80 }
85 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( 81 std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
86 const gfx::Size& dimensions, 82 const gfx::Size& dimensions,
87 media::VideoPixelFormat format, 83 media::VideoPixelFormat format,
88 media::VideoPixelStorage storage, 84 media::VideoPixelStorage storage,
89 int frame_feedback_id) override { 85 int frame_feedback_id) override {
90 EXPECT_EQ(media::PIXEL_FORMAT_I420, format); 86 EXPECT_EQ(media::PIXEL_FORMAT_I420, format);
91 EXPECT_EQ(media::PIXEL_STORAGE_CPU, storage); 87 EXPECT_EQ(media::PIXEL_STORAGE_CPU, storage);
92 DoResurrectLastOutputBuffer(); 88 DoResurrectLastOutputBuffer();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 media::VideoCaptureParams capture_params; 156 media::VideoCaptureParams capture_params;
161 capture_params.requested_format.frame_size.SetSize(640, 480); 157 capture_params.requested_format.frame_size.SetSize(640, 480);
162 capture_params.requested_format.frame_rate = kFrameRate; 158 capture_params.requested_format.frame_rate = kFrameRate;
163 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; 159 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420;
164 capture_device->AllocateAndStart(capture_params, std::move(client)); 160 capture_device->AllocateAndStart(capture_params, std::move(client));
165 capture_device->StopAndDeAllocate(); 161 capture_device->StopAndDeAllocate();
166 } 162 }
167 163
168 } // namespace 164 } // namespace
169 } // namespace content 165 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698