OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
sandersd (OOO until July 31)
2015/09/10 20:28:20
http://www.chromium.org/developers/coding-style#TO
liberato (no reviews please)
2015/09/14 17:41:28
Done, and elsewhere.
| |
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_ANDROID_COPYING_BACKING_STRATEGY_H_ | |
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ | |
7 | |
8 #include <list> | |
sandersd (OOO until July 31)
2015/09/10 20:28:20
Many of these headers are not used in this file.
liberato (no reviews please)
2015/09/14 17:41:28
Done.
| |
9 #include <map> | |
10 #include <queue> | |
11 #include <string> | |
12 #include <vector> | |
13 | |
14 #include "base/compiler_specific.h" | |
15 #include "base/threading/thread_checker.h" | |
16 #include "content/common/content_export.h" | |
17 #include "content/common/gpu/media/android_video_decode_accelerator.h" | |
18 #include "content/common/gpu/media/android_video_decode_accelerator_state_provid er.h" | |
19 #include "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" | |
20 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | |
21 | |
22 namespace content { | |
23 // A BackingStrategy implementation that copies images to PictureBuffer | |
24 // textures via gpu texture copy. | |
25 class CONTENT_EXPORT AndroidCopyingBackingStrategy | |
26 : public AndroidVideoDecodeAccelerator::BackingStrategy { | |
27 public: | |
28 AndroidCopyingBackingStrategy(); | |
29 ~AndroidCopyingBackingStrategy() override; | |
30 | |
31 // AndroidVideoDecodeAccelerator::BackingStrategy | |
32 void SetStateProvider(AndroidVideoDecodeAcceleratorStateProvider*) override; | |
33 void Cleanup() override; | |
34 uint32 GetNumPictureBuffers() const override; | |
35 uint32 GetTextureTarget() const override; | |
36 void AssignCurrentSurfaceToPictureBuffer( | |
37 int32 codec_buffer_index, | |
38 const media::PictureBuffer&) override; | |
39 | |
40 private: | |
41 // Used for copy the texture from surface texture to picture buffers. | |
42 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; | |
43 | |
44 AndroidVideoDecodeAcceleratorStateProvider* state_provider_; | |
45 }; | |
46 | |
47 } // namespace content | |
48 | |
49 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ | |
OLD | NEW |