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

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

Issue 1910063005: Store AVDACodecImage list in shared state, cleanup callers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 years, 8 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
« no previous file with comments | « no previous file | content/common/gpu/media/android_copying_backing_strategy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_COPYING_BACKING_STRATEGY_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 35
36 // AndroidVideoDecodeAccelerator::BackingStrategy 36 // AndroidVideoDecodeAccelerator::BackingStrategy
37 gfx::ScopedJavaSurface Initialize(int surface_view_id) override; 37 gfx::ScopedJavaSurface Initialize(int surface_view_id) override;
38 void Cleanup(bool have_context, 38 void Cleanup(bool have_context,
39 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; 39 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
40 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture() const override; 40 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture() const override;
41 uint32_t GetTextureTarget() const override; 41 uint32_t GetTextureTarget() const override;
42 gfx::Size GetPictureBufferSize() const override; 42 gfx::Size GetPictureBufferSize() const override;
43 void UseCodecBufferForPictureBuffer(int32_t codec_buffer_index, 43 void UseCodecBufferForPictureBuffer(int32_t codec_buffer_index,
44 const media::PictureBuffer&) override; 44 const media::PictureBuffer&) override;
45 void CodecChanged( 45 void CodecChanged(media::VideoCodecBridge*) override;
46 media::VideoCodecBridge*,
47 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
48 void OnFrameAvailable() override; 46 void OnFrameAvailable() override;
49 bool ArePicturesOverlayable() override; 47 bool ArePicturesOverlayable() override;
50 void UpdatePictureBufferSize(media::PictureBuffer* picture_buffer, 48 void UpdatePictureBufferSize(media::PictureBuffer* picture_buffer,
51 const gfx::Size& new_size) override; 49 const gfx::Size& new_size) override;
52 50
53 private: 51 private:
54 // Used for copy the texture from surface texture to picture buffers. 52 // Used for copy the texture from surface texture to picture buffers.
55 std::unique_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; 53 std::unique_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_;
56 54
57 AVDAStateProvider* state_provider_; 55 AVDAStateProvider* state_provider_;
58 56
59 // A container of texture. Used to set a texture to |media_codec_|. 57 // A container of texture. Used to set a texture to |media_codec_|.
60 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 58 scoped_refptr<gfx::SurfaceTexture> surface_texture_;
61 59
62 // The texture id which is set to |surface_texture_|. 60 // The texture id which is set to |surface_texture_|.
63 uint32_t surface_texture_id_; 61 uint32_t surface_texture_id_;
64 62
65 media::VideoCodecBridge* media_codec_; 63 media::VideoCodecBridge* media_codec_;
66 }; 64 };
67 65
68 } // namespace content 66 } // namespace content
69 67
70 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ 68 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/android_copying_backing_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698