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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
6 #define UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
7
8 #include "media/types/video_decode_accelerator_impl.h"
9
10 namespace media {
11 class BitstreamBuffer;
12 class PictureBuffer;
13 }
14
15 namespace ui {
16 // Interface to perform different media video decoding implementations.
17 class VideoDecodeFactoryOzone
18 : 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.
19 public:
20 VideoDecodeFactoryOzone();
21 virtual ~VideoDecodeFactoryOzone();
22
23 // Returns the instance
24 static VideoDecodeFactoryOzone* GetInstance();
25
26 // Sets the implementation delegate. Ownership is retained by the caller.
27 static void SetInstance(VideoDecodeFactoryOzone* impl);
28
29 // media::VideoDecodeAccelerator implementation.
30 virtual bool Initialize(media::VideoCodecProfile profile,
31 Client* client);
32 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer);
33 virtual void AssignPictureBuffers(
34 const std::vector<media::PictureBuffer>& buffers);
35 virtual void ReusePictureBuffer(int32 picture_buffer_id);
36 virtual void Flush();
37 virtual void Reset();
38 virtual void Destroy();
39
40 private:
41 static VideoDecodeFactoryOzone* impl_; // not owned
42 };
43
44 } // namespace ui
45
46 #endif // UI_OZONE_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698