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

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

Issue 1515993003: Use AVDA copying strategy unless the unified pipeline flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback 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 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/gpu/media/android_video_decode_accelerator.h" 10 #include "content/common/gpu/media/android_video_decode_accelerator.h"
(...skipping 22 matching lines...) Expand all
33 void Initialize(AVDAStateProvider*) override; 33 void Initialize(AVDAStateProvider*) override;
34 void Cleanup(const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; 34 void Cleanup(const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
35 uint32 GetTextureTarget() const override; 35 uint32 GetTextureTarget() const override;
36 scoped_refptr<gfx::SurfaceTexture> CreateSurfaceTexture() override; 36 scoped_refptr<gfx::SurfaceTexture> CreateSurfaceTexture() override;
37 void UseCodecBufferForPictureBuffer(int32 codec_buffer_index, 37 void UseCodecBufferForPictureBuffer(int32 codec_buffer_index,
38 const media::PictureBuffer&) override; 38 const media::PictureBuffer&) override;
39 void CodecChanged( 39 void CodecChanged(
40 media::VideoCodecBridge*, 40 media::VideoCodecBridge*,
41 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; 41 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override;
42 42
43 static media::VideoDecodeAccelerator::Capabilities::Flags
44 GetCapabilitiesFlags() {
45 return media::VideoDecodeAccelerator::Capabilities::NO_FLAGS;
46 }
47
48 private: 43 private:
49 // Used for copy the texture from surface texture to picture buffers. 44 // Used for copy the texture from surface texture to picture buffers.
50 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; 45 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_;
51 46
52 AVDAStateProvider* state_provider_; 47 AVDAStateProvider* state_provider_;
53 48
54 // A container of texture. Used to set a texture to |media_codec_|. 49 // A container of texture. Used to set a texture to |media_codec_|.
55 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 50 scoped_refptr<gfx::SurfaceTexture> surface_texture_;
56 51
57 // The texture id which is set to |surface_texture_|. 52 // The texture id which is set to |surface_texture_|.
58 uint32 surface_texture_id_; 53 uint32 surface_texture_id_;
59 54
60 media::VideoCodecBridge* media_codec_; 55 media::VideoCodecBridge* media_codec_;
61 }; 56 };
62 57
63 } // namespace content 58 } // namespace content
64 59
65 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ 60 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/common/gpu/media/android_deferred_rendering_backing_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698