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

Side by Side Diff: content/common/gpu/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: 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 CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
6 #define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
7
8 #include "content/common/gpu/media/video_decode_accelerator_impl.h"
9
10 namespace media {
11 class BitstreamBuffer;
12 class PictureBuffer;
13 }
14
15 // vignatti(TODO): description.
16 namespace content {
17
18 class VideoDecodeFactoryOzone
19 : public VideoDecodeAcceleratorImpl {
20 public:
21 VideoDecodeFactoryOzone();
22 virtual ~VideoDecodeFactoryOzone();
23
24 // Returns the instance
25 static VideoDecodeFactoryOzone* GetInstance();
26
27 // Sets the implementation delegate. Ownership is retained by the caller.
28 static void SetInstance(VideoDecodeFactoryOzone* impl);
29
30 // media::VideoDecodeAccelerator implementation.
31 virtual bool Initialize(media::VideoCodecProfile profile,
32 Client* client);
33 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer);
34 virtual void AssignPictureBuffers(
35 const std::vector<media::PictureBuffer>& buffers);
36 virtual void ReusePictureBuffer(int32 picture_buffer_id);
37 virtual void Flush();
38 virtual void Reset();
39 virtual void Destroy();
40
41 private:
42 static VideoDecodeFactoryOzone* impl_; // not owned
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698