| OLD | NEW |
| 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/memory_mapped_file.h" | 9 #include "base/files/memory_mapped_file.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 | 690 |
| 691 SetState(CS_ENCODER_SET); | 691 SetState(CS_ENCODER_SET); |
| 692 | 692 |
| 693 DVLOG(1) << "Profile: " << test_stream_->requested_profile | 693 DVLOG(1) << "Profile: " << test_stream_->requested_profile |
| 694 << ", initial bitrate: " << requested_bitrate_; | 694 << ", initial bitrate: " << requested_bitrate_; |
| 695 if (!encoder_->Initialize(kInputFormat, | 695 if (!encoder_->Initialize(kInputFormat, |
| 696 test_stream_->visible_size, | 696 test_stream_->visible_size, |
| 697 test_stream_->requested_profile, | 697 test_stream_->requested_profile, |
| 698 requested_bitrate_, | 698 requested_bitrate_, |
| 699 this)) { | 699 this)) { |
| 700 DLOG(ERROR) << "VideoEncodeAccelerator::Initialize() failed"; | 700 LOG(ERROR) << "VideoEncodeAccelerator::Initialize() failed"; |
| 701 SetState(CS_ERROR); | 701 SetState(CS_ERROR); |
| 702 return; | 702 return; |
| 703 } | 703 } |
| 704 | 704 |
| 705 SetStreamParameters(requested_bitrate_, requested_framerate_); | 705 SetStreamParameters(requested_bitrate_, requested_framerate_); |
| 706 SetState(CS_INITIALIZED); | 706 SetState(CS_INITIALIZED); |
| 707 } | 707 } |
| 708 | 708 |
| 709 void VEAClient::DestroyEncoder() { | 709 void VEAClient::DestroyEncoder() { |
| 710 DCHECK(thread_checker_.CalledOnValidThread()); | 710 DCHECK(thread_checker_.CalledOnValidThread()); |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 content::g_env = | 1206 content::g_env = |
| 1207 reinterpret_cast<content::VideoEncodeAcceleratorTestEnvironment*>( | 1207 reinterpret_cast<content::VideoEncodeAcceleratorTestEnvironment*>( |
| 1208 testing::AddGlobalTestEnvironment( | 1208 testing::AddGlobalTestEnvironment( |
| 1209 new content::VideoEncodeAcceleratorTestEnvironment( | 1209 new content::VideoEncodeAcceleratorTestEnvironment( |
| 1210 test_stream_data.Pass()))); | 1210 test_stream_data.Pass()))); |
| 1211 | 1211 |
| 1212 return RUN_ALL_TESTS(); | 1212 return RUN_ALL_TESTS(); |
| 1213 } | 1213 } |
| OLD | NEW |