| 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::VideoEncodingCapabilities |
| 372 ScreenCaptureDevice::GetEncodingCapabilities() { |
| 373 return media::VideoEncodingCapabilities(); |
| 374 } |
| 375 |
| 376 void ScreenCaptureDevice::TryConfigureEncodedBitstream( |
| 377 const media::RuntimeVideoEncodingParameters& params) { |
| 378 } |
| 379 |
| 371 void ScreenCaptureDevice::Allocate(int width, int height, | 380 void ScreenCaptureDevice::Allocate(int width, int height, |
| 372 int frame_rate, | 381 int frame_rate, |
| 373 EventHandler* event_handler) { | 382 EventHandler* event_handler) { |
| 374 core_->Allocate(width, height, frame_rate, event_handler); | 383 core_->Allocate(width, height, frame_rate, event_handler); |
| 375 } | 384 } |
| 376 | 385 |
| 377 void ScreenCaptureDevice::Start() { | 386 void ScreenCaptureDevice::Start() { |
| 378 core_->Start(); | 387 core_->Start(); |
| 379 } | 388 } |
| 380 | 389 |
| 381 void ScreenCaptureDevice::Stop() { | 390 void ScreenCaptureDevice::Stop() { |
| 382 core_->Stop(); | 391 core_->Stop(); |
| 383 } | 392 } |
| 384 | 393 |
| 385 void ScreenCaptureDevice::DeAllocate() { | 394 void ScreenCaptureDevice::DeAllocate() { |
| 386 core_->DeAllocate(); | 395 core_->DeAllocate(); |
| 387 } | 396 } |
| 388 | 397 |
| 389 const media::VideoCaptureDevice::Name& ScreenCaptureDevice::device_name() { | 398 const media::VideoCaptureDevice::Name& ScreenCaptureDevice::device_name() { |
| 390 return name_; | 399 return name_; |
| 391 } | 400 } |
| 392 | 401 |
| 393 } // namespace content | 402 } // namespace content |
| OLD | NEW |