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

Side by Side Diff: content/common/gpu/media/fake_video_decode_accelerator.h

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "media/video/video_decode_accelerator.h" 13 #include "media/video/video_decode_accelerator.h"
14 #include "ui/gfx/geometry/size_f.h" 14 #include "ui/gfx/geometry/size_f.h"
15 #include "ui/gl/gl_context.h" 15 #include "ui/gl/gl_context.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class CONTENT_EXPORT FakeVideoDecodeAccelerator 19 class CONTENT_EXPORT FakeVideoDecodeAccelerator
20 : public media::VideoDecodeAccelerator { 20 : public media::VideoDecodeAccelerator {
21 public: 21 public:
22 FakeVideoDecodeAccelerator( 22 FakeVideoDecodeAccelerator(
23 gfx::GLContext* gl, 23 gfx::GLContext* gl,
24 gfx::Size size, 24 gfx::Size size,
25 const base::Callback<bool(void)>& make_context_current); 25 const base::Callback<bool(void)>& make_context_current);
26 ~FakeVideoDecodeAccelerator() override; 26 ~FakeVideoDecodeAccelerator() override;
27 27
28 bool Initialize(media::VideoCodecProfile profile, 28 bool Initialize(const Config& config, Client* client) override;
29 Client* client) override;
30 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 29 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
31 void AssignPictureBuffers( 30 void AssignPictureBuffers(
32 const std::vector<media::PictureBuffer>& buffers) override; 31 const std::vector<media::PictureBuffer>& buffers) override;
33 void ReusePictureBuffer(int32 picture_buffer_id) override; 32 void ReusePictureBuffer(int32 picture_buffer_id) override;
34 void Flush() override; 33 void Flush() override;
35 void Reset() override; 34 void Reset() override;
36 void Destroy() override; 35 void Destroy() override;
37 bool CanDecodeOnIOThread() override; 36 bool CanDecodeOnIOThread() override;
38 37
39 private: 38 private:
(...skipping 22 matching lines...) Expand all
62 61
63 // The WeakPtrFactory for |weak_this_|. 62 // The WeakPtrFactory for |weak_this_|.
64 base::WeakPtrFactory<FakeVideoDecodeAccelerator> weak_this_factory_; 63 base::WeakPtrFactory<FakeVideoDecodeAccelerator> weak_this_factory_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecodeAccelerator); 65 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecodeAccelerator);
67 }; 66 };
68 67
69 } // namespace content 68 } // namespace content
70 69
71 #endif // CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ 70 #endif // CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698