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

Unified Diff: ui/ozone/media/video_decode_factory_ozone.h

Issue 269673005: media: Add MediaOzonePlatform support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix up dependency cycle Created 6 years, 7 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: ui/ozone/media/video_decode_factory_ozone.h
diff --git a/ui/ozone/media/video_decode_factory_ozone.h b/ui/ozone/media/video_decode_factory_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..f01c9cebdbb288485bffe85f5fe96b7ddbd47552
--- /dev/null
+++ b/ui/ozone/media/video_decode_factory_ozone.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2014 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 UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
+#define UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
+
+#include "media/types/video_decode_accelerator_impl.h"
+
+namespace media {
+class BitstreamBuffer;
+class PictureBuffer;
+}
+
+namespace ui {
+// Interface to perform different media video decoding implementations.
+class VideoDecodeFactoryOzone
+ : public media::VideoDecodeAcceleratorImpl {
Ami GONE FROM CHROMIUM 2014/05/07 22:51:27 Per another comment earlier in the reviewlog, havi
Ami GONE FROM CHROMIUM 2014/05/07 22:51:27 I don't think you need the factory to inherit from
vignatti (out of this project) 2014/06/02 19:21:42 Done.
vignatti (out of this project) 2014/06/02 19:21:42 Done.
+ public:
+ VideoDecodeFactoryOzone();
+ virtual ~VideoDecodeFactoryOzone();
+
+ // Returns the instance
+ static VideoDecodeFactoryOzone* GetInstance();
+
+ // Sets the implementation delegate. Ownership is retained by the caller.
+ static void SetInstance(VideoDecodeFactoryOzone* impl);
+
+ // media::VideoDecodeAccelerator implementation.
+ virtual bool Initialize(media::VideoCodecProfile profile,
+ Client* client);
+ virtual void Decode(const media::BitstreamBuffer& bitstream_buffer);
+ virtual void AssignPictureBuffers(
+ const std::vector<media::PictureBuffer>& buffers);
+ virtual void ReusePictureBuffer(int32 picture_buffer_id);
+ virtual void Flush();
+ virtual void Reset();
+ virtual void Destroy();
+
+ private:
+ static VideoDecodeFactoryOzone* impl_; // not owned
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698