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

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

Issue 1750213002: Fix Android black frames from MSE config changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
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 "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 26 matching lines...) Expand all
37 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; 37 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
38 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture() const override; 38 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture() const override;
39 uint32_t GetTextureTarget() const override; 39 uint32_t GetTextureTarget() const override;
40 void UseCodecBufferForPictureBuffer(int32_t codec_buffer_index, 40 void UseCodecBufferForPictureBuffer(int32_t codec_buffer_index,
41 const media::PictureBuffer&) override; 41 const media::PictureBuffer&) override;
42 void CodecChanged( 42 void CodecChanged(
43 media::VideoCodecBridge*, 43 media::VideoCodecBridge*,
44 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; 44 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
45 void OnFrameAvailable() override; 45 void OnFrameAvailable() override;
46 bool ArePicturesOverlayable() override; 46 bool ArePicturesOverlayable() override;
47 void UpdatePictureBufferSize(media::PictureBuffer* picture_buffer,
48 const gfx::Size& new_size) override;
47 49
48 private: 50 private:
49 // Used for copy the texture from surface texture to picture buffers. 51 // Used for copy the texture from surface texture to picture buffers.
50 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; 52 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_;
51 53
52 AVDAStateProvider* state_provider_; 54 AVDAStateProvider* state_provider_;
53 55
54 // A container of texture. Used to set a texture to |media_codec_|. 56 // A container of texture. Used to set a texture to |media_codec_|.
55 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 57 scoped_refptr<gfx::SurfaceTexture> surface_texture_;
56 58
57 // The texture id which is set to |surface_texture_|. 59 // The texture id which is set to |surface_texture_|.
58 uint32_t surface_texture_id_; 60 uint32_t surface_texture_id_;
59 61
60 media::VideoCodecBridge* media_codec_; 62 media::VideoCodecBridge* media_codec_;
61 }; 63 };
62 64
63 } // namespace content 65 } // namespace content
64 66
65 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ 67 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698