OLD | NEW |
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 "gpu/command_buffer/service/texture_manager.h" | 10 #include "gpu/command_buffer/service/texture_manager.h" |
11 #include "media/gpu/media_gpu_export.h" | 11 #include "media/gpu/media_gpu_export.h" |
12 #include "media/video/video_decode_accelerator.h" | 12 #include "media/video/video_decode_accelerator.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gl { |
15 class SurfaceTexture; | 15 class SurfaceTexture; |
16 } | 16 } |
17 | 17 |
18 namespace gpu { | 18 namespace gpu { |
19 namespace gles2 { | 19 namespace gles2 { |
20 class GLES2Decoder; | 20 class GLES2Decoder; |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 namespace media { | 24 namespace media { |
(...skipping 18 matching lines...) Expand all Loading... |
43 // Helper function to report an error condition and stop decoding. | 43 // Helper function to report an error condition and stop decoding. |
44 // This will post NotifyError(), and transition to the error state. | 44 // This will post NotifyError(), and transition to the error state. |
45 // It is meant to be called from the RETURN_ON_FAILURE macro. | 45 // It is meant to be called from the RETURN_ON_FAILURE macro. |
46 virtual void PostError(const ::tracked_objects::Location& from_here, | 46 virtual void PostError(const ::tracked_objects::Location& from_here, |
47 media::VideoDecodeAccelerator::Error error) = 0; | 47 media::VideoDecodeAccelerator::Error error) = 0; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace media | 50 } // namespace media |
51 | 51 |
52 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVI
DER_H_ | 52 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_STATE_PROVI
DER_H_ |
OLD | NEW |