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_VAAPI_JPEG_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 base::Thread decoder_thread_; | 94 base::Thread decoder_thread_; |
95 // Use this to post tasks to |decoder_thread_| instead of | 95 // Use this to post tasks to |decoder_thread_| instead of |
96 // |decoder_thread_.task_runner()| because the latter will be NULL once | 96 // |decoder_thread_.task_runner()| because the latter will be NULL once |
97 // |decoder_thread_.Stop()| returns. | 97 // |decoder_thread_.Stop()| returns. |
98 scoped_refptr<base::SingleThreadTaskRunner> decoder_task_runner_; | 98 scoped_refptr<base::SingleThreadTaskRunner> decoder_task_runner_; |
99 | 99 |
100 // The current VA surface for decoding. | 100 // The current VA surface for decoding. |
101 VASurfaceID va_surface_id_; | 101 VASurfaceID va_surface_id_; |
102 // The coded size associated with |va_surface_id_|. | 102 // The coded size associated with |va_surface_id_|. |
103 gfx::Size coded_size_; | 103 gfx::Size coded_size_; |
104 // The VA RT format associated with |va_surface_id_|. | |
105 unsigned int va_rt_format_; | |
106 | 104 |
107 // The WeakPtrFactory for |weak_this_|. | 105 // The WeakPtrFactory for |weak_this_|. |
108 base::WeakPtrFactory<VaapiJpegDecodeAccelerator> weak_this_factory_; | 106 base::WeakPtrFactory<VaapiJpegDecodeAccelerator> weak_this_factory_; |
109 | 107 |
110 DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator); | 108 DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator); |
111 }; | 109 }; |
112 | 110 |
113 } // namespace content | 111 } // namespace content |
114 | 112 |
115 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ | 113 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ |
OLD | NEW |