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

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

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address alokp@ comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/filters/hole_frame_factory.h
diff --git a/chromecast/media/cma/filters/hole_frame_factory.h b/chromecast/media/cma/filters/hole_frame_factory.h
deleted file mode 100644
index c77fb6be8dfee2d8e04d01e3bc64998903c0708d..0000000000000000000000000000000000000000
--- a/chromecast/media/cma/filters/hole_frame_factory.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMECAST_MEDIA_CMA_FILTERS_HOLE_FRAME_FACTORY_H_
-#define CHROMECAST_MEDIA_CMA_FILTERS_HOLE_FRAME_FACTORY_H_
-
-#include <GLES2/gl2.h>
-
-#include "base/memory/ref_counted.h"
-#include "gpu/command_buffer/common/mailbox.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace media {
-class GpuVideoAcceleratorFactories;
-class VideoFrame;
-}
-
-namespace chromecast {
-namespace media {
-
-// Creates VideoFrames for CMA - native textures that get turned into
-// transparent holes in the browser compositor using overlay system.
-// All calls (including ctor/dtor) must be on media thread.
-class HoleFrameFactory {
- public:
- explicit HoleFrameFactory(const scoped_refptr<
- ::media::GpuVideoAcceleratorFactories>& gpu_factories);
- ~HoleFrameFactory();
-
- scoped_refptr<::media::VideoFrame> CreateHoleFrame(const gfx::Size& size);
-
- private:
- scoped_refptr<::media::GpuVideoAcceleratorFactories> gpu_factories_;
- gpu::Mailbox mailbox_;
- GLuint texture_;
- GLuint image_id_;
- GLuint sync_point_;
-
- DISALLOW_COPY_AND_ASSIGN(HoleFrameFactory);
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_MEDIA_CMA_FILTERS_HOLE_FRAME_FACTORY_H_
« no previous file with comments | « chromecast/media/cma/filters/demuxer_stream_adapter_unittest.cc ('k') | chromecast/media/cma/filters/hole_frame_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698