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

Unified Diff: chromecast/media/cma/filters/hole_frame_factory.cc

Issue 1380533002: [Chromecast] Remove use of VIDEO_HOLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete gn dependencies Created 5 years, 3 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
« no previous file with comments | « chromecast/media/cma/filters/hole_frame_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chromecast/media/cma/filters/hole_frame_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698