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

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

Issue 1313913003: Begin refactor of AVDA to support zero-copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add gn build. Created 5 years, 3 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
no sievers 2015/09/11 00:20:39 nit: drop (c)
liberato (no reviews please) 2015/09/14 17:41:28 Done.
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_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVIDER _H_
7
8 #include <list>
sandersd (OOO until July 31) 2015/09/10 20:28:20 Again several of these are unused. Perhaps you sho
no sievers 2015/09/11 00:20:39 Actually, all of these are unused in this header.
liberato (no reviews please) 2015/09/14 17:41:28 Done.
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 "base/timer/timer.h"
17 #include "content/common/content_export.h"
18 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
no sievers 2015/09/11 00:20:39 And most of these are could be forward-declared.
liberato (no reviews please) 2015/09/14 17:41:28 Done.
19 #include "media/base/android/media_codec_bridge.h"
20 #include "media/video/video_decode_accelerator.h"
21
22 namespace gfx {
23 class SurfaceTexture;
24 }
25
26 namespace content {
27
28 // Helper class that provides the BackingStrategy with enough state
29 // to do useful work.
30 class AndroidVideoDecodeAcceleratorStateProvider {
31 public:
32 virtual ~AndroidVideoDecodeAcceleratorStateProvider() {}
33
34 // Various handy getters.
35 virtual const gfx::Size& GetSize() const = 0;
36 virtual const base::ThreadChecker& ThreadChecker() const = 0;
37 virtual gfx::SurfaceTexture* GetSurfaceTexture() const = 0;
38 virtual uint32 GetSurfaceTextureId() const = 0;
39 virtual gpu::gles2::GLES2Decoder* GetGlDecoder() const = 0;
40 virtual media::VideoCodecBridge* GetMediaCodec() = 0;
41
42 // Helper function to report an error condition and stop decoding.
43 // This will post NotifyError(), and transition to the error state.
44 // It is meant to be called from the RETURN_ON_FAILURE macro.
45 virtual void PostError(const ::tracked_objects::Location& from_here,
46 media::VideoDecodeAccelerator::Error error) = 0;
47 };
48
49 } // namespace content
50
51 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698