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

Side by Side Diff: content/renderer/media/video_capture_impl_unittest.cc

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: previous patchset has unrelated code by mistake. Created 6 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "content/child/child_process.h" 7 #include "content/child/child_process.h"
8 #include "content/common/media/video_capture_messages.h" 8 #include "content/common/media/video_capture_messages.h"
9 #include "content/renderer/media/video_capture_impl.h" 9 #include "content/renderer/media/video_capture_impl.h"
10 #include "media/base/bind_to_current_loop.h" 10 #include "media/base/bind_to_current_loop.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 void DevicePauseCapture(int device_id) {} 77 void DevicePauseCapture(int device_id) {}
78 78
79 void DeviceStopCapture(int device_id) { 79 void DeviceStopCapture(int device_id) {
80 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED); 80 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED);
81 } 81 }
82 82
83 void DeviceReceiveEmptyBuffer(int device_id, 83 void DeviceReceiveEmptyBuffer(int device_id,
84 int buffer_id, 84 int buffer_id,
85 uint32 sync_point) {} 85 const std::vector<uint32>& sync_points) {}
86 86
87 void DeviceGetSupportedFormats(int device_id, 87 void DeviceGetSupportedFormats(int device_id,
88 media::VideoCaptureSessionId session_id) { 88 media::VideoCaptureSessionId session_id) {
89 // When the mock message filter receives a request for the device 89 // When the mock message filter receives a request for the device
90 // supported formats, replies immediately with an empty format list. 90 // supported formats, replies immediately with an empty format list.
91 OnDeviceSupportedFormatsEnumerated( 91 OnDeviceSupportedFormatsEnumerated(
92 media::VideoCaptureFormats()); 92 media::VideoCaptureFormats());
93 } 93 }
94 94
95 void DeviceGetFormatsInUse(int device_id, 95 void DeviceGetFormatsInUse(int device_id,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 base::Unretained(client.get())); 281 base::Unretained(client.get()));
282 video_capture_impl_->GetDeviceFormatsInUse(callback); 282 video_capture_impl_->GetDeviceFormatsInUse(callback);
283 video_capture_impl_->DeInit( 283 video_capture_impl_->DeInit(
284 media::BindToCurrentLoop(run_loop_.QuitClosure())); 284 media::BindToCurrentLoop(run_loop_.QuitClosure()));
285 run_loop_.Run(); 285 run_loop_.Run();
286 286
287 EXPECT_TRUE(formats_in_use.empty()); 287 EXPECT_TRUE(formats_in_use.empty());
288 } 288 }
289 289
290 } // namespace content 290 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698