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

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

Issue 1370443007: Move SurfaceTexture construction to BackingStrategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 5 years, 2 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 | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | no next file » | 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_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Helper class that provides the BackingStrategy with enough state 29 // Helper class that provides the BackingStrategy with enough state
30 // to do useful work. 30 // to do useful work.
31 class AndroidVideoDecodeAcceleratorStateProvider { 31 class AndroidVideoDecodeAcceleratorStateProvider {
32 public: 32 public:
33 virtual ~AndroidVideoDecodeAcceleratorStateProvider() {} 33 virtual ~AndroidVideoDecodeAcceleratorStateProvider() {}
34 34
35 // Various handy getters. 35 // Various handy getters.
36 virtual const gfx::Size& GetSize() const = 0; 36 virtual const gfx::Size& GetSize() const = 0;
37 virtual const base::ThreadChecker& ThreadChecker() const = 0; 37 virtual const base::ThreadChecker& ThreadChecker() const = 0;
38 virtual gfx::SurfaceTexture* GetSurfaceTexture() const = 0;
39 virtual uint32 GetSurfaceTextureId() const = 0;
40 virtual gpu::gles2::GLES2Decoder* GetGlDecoder() const = 0; 38 virtual gpu::gles2::GLES2Decoder* GetGlDecoder() const = 0;
41 virtual media::VideoCodecBridge* GetMediaCodec() = 0; 39 virtual media::VideoCodecBridge* GetMediaCodec() = 0;
42 40
43 // Helper function to report an error condition and stop decoding. 41 // Helper function to report an error condition and stop decoding.
44 // This will post NotifyError(), and transition to the error state. 42 // This will post NotifyError(), and transition to the error state.
45 // It is meant to be called from the RETURN_ON_FAILURE macro. 43 // It is meant to be called from the RETURN_ON_FAILURE macro.
46 virtual void PostError(const ::tracked_objects::Location& from_here, 44 virtual void PostError(const ::tracked_objects::Location& from_here,
47 media::VideoDecodeAccelerator::Error error) = 0; 45 media::VideoDecodeAccelerator::Error error) = 0;
48 }; 46 };
49 47
50 } // namespace content 48 } // namespace content
51 49
52 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVI DER_H_ 50 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVI DER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698