OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/renderer_host/media/screen_capture_device.h" | 5 #include "content/browser/renderer_host/media/screen_capture_device.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 361 |
362 ScreenCaptureDevice::~ScreenCaptureDevice() { | 362 ScreenCaptureDevice::~ScreenCaptureDevice() { |
363 DeAllocate(); | 363 DeAllocate(); |
364 } | 364 } |
365 | 365 |
366 void ScreenCaptureDevice::SetScreenCapturerForTest( | 366 void ScreenCaptureDevice::SetScreenCapturerForTest( |
367 scoped_ptr<webrtc::ScreenCapturer> capturer) { | 367 scoped_ptr<webrtc::ScreenCapturer> capturer) { |
368 core_->SetScreenCapturerForTest(capturer.Pass()); | 368 core_->SetScreenCapturerForTest(capturer.Pass()); |
369 } | 369 } |
370 | 370 |
| 371 media::VideoEncodingCapability ScreenCaptureDevice::GetEncodingCapability() { |
| 372 return media::VideoEncodingCapability(); |
| 373 } |
| 374 |
| 375 void ScreenCaptureDevice::TryConfigureEncodedBitstream( |
| 376 const media::RuntimeVideoEncodingParameters& params) { |
| 377 } |
| 378 |
371 void ScreenCaptureDevice::Allocate(int width, int height, | 379 void ScreenCaptureDevice::Allocate(int width, int height, |
372 int frame_rate, | 380 int frame_rate, |
373 EventHandler* event_handler) { | 381 EventHandler* event_handler) { |
374 core_->Allocate(width, height, frame_rate, event_handler); | 382 core_->Allocate(width, height, frame_rate, event_handler); |
375 } | 383 } |
376 | 384 |
377 void ScreenCaptureDevice::Start() { | 385 void ScreenCaptureDevice::Start() { |
378 core_->Start(); | 386 core_->Start(); |
379 } | 387 } |
380 | 388 |
381 void ScreenCaptureDevice::Stop() { | 389 void ScreenCaptureDevice::Stop() { |
382 core_->Stop(); | 390 core_->Stop(); |
383 } | 391 } |
384 | 392 |
385 void ScreenCaptureDevice::DeAllocate() { | 393 void ScreenCaptureDevice::DeAllocate() { |
386 core_->DeAllocate(); | 394 core_->DeAllocate(); |
387 } | 395 } |
388 | 396 |
389 const media::VideoCaptureDevice::Name& ScreenCaptureDevice::device_name() { | 397 const media::VideoCaptureDevice::Name& ScreenCaptureDevice::device_name() { |
390 return name_; | 398 return name_; |
391 } | 399 } |
392 | 400 |
393 } // namespace content | 401 } // namespace content |
OLD | NEW |