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

Unified Diff: media/blink/stream_texture_wrapper.h

Issue 2192823004: Update StreamTextureProxy to accept a base::Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 4 years, 5 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 | « media/blink/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/stream_texture_wrapper.h
diff --git a/media/blink/stream_texture_wrapper.h b/media/blink/stream_texture_wrapper.h
deleted file mode 100644
index bc4308e1bc7ff9cb163ad9b039ce9f4502170e95..0000000000000000000000000000000000000000
--- a/media/blink/stream_texture_wrapper.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2016 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 MEDIA_BLINK_STREAM_TEXTURE_WRAPPER_H_
-#define MEDIA_BLINK_STREAM_TEXTURE_WRAPPER_H_
-
-#include "cc/layers/video_frame_provider.h"
-#include "media/base/video_frame.h"
-
-namespace media {
-class VideoFrame;
-
-// StreamTextureWrapper encapsulates a StreamTexture's creation, initialization
-// and registration for later retrieval (in the Browser process).
-//
-// TODO(tguilbert): Support registering the underlying SurfaceTexture so it can
-// be used by a MediaPlayer in the browser process. See crbug.com/627658.
-class MEDIA_EXPORT StreamTextureWrapper {
- public:
- StreamTextureWrapper() {}
-
- // Initialize the underlying StreamTexture.
- // See StreamTextureWrapperImpl.
- virtual void Initialize(
- cc::VideoFrameProvider::Client* client,
- const gfx::Size& natural_size,
- scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
- const base::Closure& init_cb) = 0;
-
- // Called whenever the video's natural size changes.
- // See StreamTextureWrapperImpl.
- virtual void UpdateTextureSize(const gfx::Size& natural_size) = 0;
-
- // Returns the latest frame.
- // See StreamTextureWrapperImpl.
- virtual scoped_refptr<VideoFrame> GetCurrentFrame() = 0;
-
- struct Deleter {
- inline void operator()(StreamTextureWrapper* ptr) const { ptr->Destroy(); }
- };
-
- protected:
- virtual ~StreamTextureWrapper() {}
-
- // Safely destroys the StreamTextureWrapper.
- // See StreamTextureWrapperImpl.
- virtual void Destroy() = 0;
-};
-
-typedef std::unique_ptr<StreamTextureWrapper, StreamTextureWrapper::Deleter>
- ScopedStreamTextureWrapper;
-
-} // namespace media
-
-#endif // MEDIA_BLINK_STREAM_TEXTURE_WRAPPER_H_
« no previous file with comments | « media/blink/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698