Index: chromecast/media/cma/filters/hole_frame_factory.cc |
diff --git a/chromecast/media/cma/filters/hole_frame_factory.cc b/chromecast/media/cma/filters/hole_frame_factory.cc |
index 5cca26a0285ad456f448b85d0214582b68b49c72..4d4b33380b0408dc7cdb70bc6a7ac05bfc534528 100644 |
--- a/chromecast/media/cma/filters/hole_frame_factory.cc |
+++ b/chromecast/media/cma/filters/hole_frame_factory.cc |
@@ -5,9 +5,7 @@ |
#include "chromecast/media/cma/filters/hole_frame_factory.h" |
#include "base/bind.h" |
-#include "base/command_line.h" |
#include "base/location.h" |
-#include "chromecast/base/chromecast_switches.h" |
#include "gpu/GLES2/gl2extchromium.h" |
#include "gpu/command_buffer/client/gles2_interface.h" |
#include "media/base/video_frame.h" |
@@ -21,11 +19,8 @@ HoleFrameFactory::HoleFrameFactory( |
: gpu_factories_(gpu_factories), |
texture_(0), |
image_id_(0), |
- sync_point_(0), |
- use_legacy_hole_punching_( |
- base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableLegacyHolePunching)) { |
- if (gpu_factories_ && !use_legacy_hole_punching_) { |
+ sync_point_(0) { |
+ if (gpu_factories_) { |
gpu::gles2::GLES2Interface* gl = gpu_factories_->GetGLES2Interface(); |
CHECK(gl); |
@@ -54,13 +49,6 @@ HoleFrameFactory::~HoleFrameFactory() { |
scoped_refptr<::media::VideoFrame> HoleFrameFactory::CreateHoleFrame( |
const gfx::Size& size) { |
- if (use_legacy_hole_punching_) { |
-#if defined(VIDEO_HOLE) |
- return ::media::VideoFrame::CreateHoleFrame(size); |
-#endif |
- NOTREACHED(); |
- } |
- |
if (texture_) { |
scoped_refptr<::media::VideoFrame> frame = |
::media::VideoFrame::WrapNativeTexture( |