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

Unified Diff: media/gpu/avda_codec_allocator.cc

Issue 2547743002: media: Remove suffix underscores from public member variables in AVDA (Closed)
Patch Set: another one Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/avda_codec_allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/avda_codec_allocator.cc
diff --git a/media/gpu/avda_codec_allocator.cc b/media/gpu/avda_codec_allocator.cc
index 1e4515a35140bab1eeb98199e43777c6c94e3c43..b8b5e7b95667ed2e938007dd5279269f3bd2b4cf 100644
--- a/media/gpu/avda_codec_allocator.cc
+++ b/media/gpu/avda_codec_allocator.cc
@@ -240,20 +240,18 @@ std::unique_ptr<VideoCodecBridge> AVDACodecAllocator::CreateMediaCodecSync(
scoped_refptr<CodecConfig> codec_config) {
TRACE_EVENT0("media", "AVDA::CreateMediaCodecSync");
- jobject media_crypto = codec_config->media_crypto_
- ? codec_config->media_crypto_->obj()
- : nullptr;
+ jobject media_crypto =
+ codec_config->media_crypto ? codec_config->media_crypto->obj() : nullptr;
- // |needs_protected_surface_| implies encrypted stream.
- DCHECK(!codec_config->needs_protected_surface_ || media_crypto);
-
- const bool require_software_codec = codec_config->task_type_ == SW_CODEC;
+ // |needs_protected_surface| implies encrypted stream.
+ DCHECK(!codec_config->needs_protected_surface || media_crypto);
+ const bool require_software_codec = codec_config->task_type == SW_CODEC;
std::unique_ptr<VideoCodecBridge> codec(VideoCodecBridge::CreateDecoder(
- codec_config->codec_, codec_config->needs_protected_surface_,
- codec_config->initial_expected_coded_size_,
- codec_config->surface_.j_surface().obj(), media_crypto,
- codec_config->csd0_, codec_config->csd1_, true, require_software_codec));
+ codec_config->codec, codec_config->needs_protected_surface,
+ codec_config->initial_expected_coded_size,
+ codec_config->surface.j_surface().obj(), media_crypto, codec_config->csd0,
+ codec_config->csd1, true, require_software_codec));
return codec;
}
@@ -262,7 +260,7 @@ void AVDACodecAllocator::CreateMediaCodecAsync(
base::WeakPtr<AVDACodecAllocatorClient> client,
scoped_refptr<CodecConfig> codec_config) {
base::PostTaskAndReplyWithResult(
- TaskRunnerFor(codec_config->task_type_).get(), FROM_HERE,
+ TaskRunnerFor(codec_config->task_type).get(), FROM_HERE,
base::Bind(&AVDACodecAllocator::CreateMediaCodecSync,
base::Unretained(this), codec_config),
base::Bind(&AVDACodecAllocatorClient::OnCodecConfigured, client));
« no previous file with comments | « media/gpu/avda_codec_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698