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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2723833002: WebM support for new multipart VP9 string. (Closed)
Patch Set: Put parsing behind a flag (--enable-hdr-output OR --enable-new-vp9-codec-string) Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 02a6627cb64b382382cca61bbdb793cec28ec5c2..08f0a555275ce2ea1dd7ba0f9914dc24bf3f4b9a 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -130,6 +130,7 @@
#include "ipc/ipc_channel_mojo.h"
#include "ipc/ipc_platform_file.h"
#include "media/base/media.h"
+#include "media/base/media_switches.h"
#include "media/media_features.h"
#include "media/renderers/gpu_video_accelerator_factories.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -809,6 +810,13 @@ void RenderThreadImpl::Init(
}
#endif
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableHDROutput) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableNewVp9CodecString)) {
+ media::EnableNewVp9CodecStringSupport();
+ }
+
memory_pressure_listener_.reset(new base::MemoryPressureListener(
base::Bind(&RenderThreadImpl::OnMemoryPressure, base::Unretained(this)),
base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,

Powered by Google App Engine
This is Rietveld 408576698