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

Unified Diff: content/common/gpu/media/ozone_video_decode_accelerator.h

Issue 269673005: media: Add MediaOzonePlatform support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/common/gpu/media/ozone_video_decode_accelerator.h
diff --git a/content/common/gpu/media/ozone_video_decode_accelerator.h b/content/common/gpu/media/ozone_video_decode_accelerator.h
new file mode 100644
index 0000000000000000000000000000000000000000..e46718fb2cda67d104e6e84d0c8aeacf90523ee4
--- /dev/null
+++ b/content/common/gpu/media/ozone_video_decode_accelerator.h
@@ -0,0 +1,37 @@
+// 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 CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_
+#define CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_
+
+#include "content/common/content_export.h"
+#include "content/common/gpu/media/video_decode_accelerator_impl.h"
+#include "media/video/video_decode_accelerator.h"
+
+namespace content {
+// vignatti(TODO): add description
+class CONTENT_EXPORT OzoneVideoDecodeAccelerator
+ : public VideoDecodeAcceleratorImpl {
+ public:
+ OzoneVideoDecodeAccelerator(
+ const base::Callback<bool(void)>& make_context_current);
+ virtual ~OzoneVideoDecodeAccelerator();
+
+ // media::VideoDecodeAccelerator implementation.
+ virtual bool Initialize(media::VideoCodecProfile profile,
+ Client* client) OVERRIDE;
+ virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
+ virtual void AssignPictureBuffers(
+ const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
+ virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
+ virtual void Flush() OVERRIDE;
+ virtual void Reset() OVERRIDE;
+ virtual void Destroy() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(OzoneVideoDecodeAccelerator);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698