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

Side by Side Diff: content/common/gpu/media/video_encode_accelerator_unittest.cc

Issue 597473002: Change log level to show real errors in release mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 6 years, 2 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 | « content/common/gpu/media/vaapi_wrapper.cc ('k') | no next file » | 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 "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
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
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 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698