| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ | 5 #ifndef CONTENT_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ |
| 6 #define CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ | 6 #define CONTENT_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| 11 #include "media/video/video_decode_context.h" | 11 #include "media/video/video_decode_context.h" |
| 12 | 12 |
| 13 // A GpuVideoDevice is used by GpuVideoDecoder to allocate video frames | 13 // A GpuVideoDevice is used by GpuVideoDecoder to allocate video frames |
| 14 // meaningful to a corresponding VideoDecodeEngine. | 14 // meaningful to a corresponding VideoDecodeEngine. |
| 15 // | 15 // |
| 16 // GpuVideoDecoder will provide a set of GL textures to this class and then | 16 // GpuVideoDecoder will provide a set of GL textures to this class and then |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 const scoped_refptr<media::VideoFrame>& frame) = 0; | 46 const scoped_refptr<media::VideoFrame>& frame) = 0; |
| 47 | 47 |
| 48 // Upload a device specific buffer to a VideoFrame object that can be used in | 48 // Upload a device specific buffer to a VideoFrame object that can be used in |
| 49 // the GPU process. | 49 // the GPU process. |
| 50 // | 50 // |
| 51 // Return true if successful. | 51 // Return true if successful. |
| 52 virtual bool ConvertToVideoFrame(void* buffer, | 52 virtual bool ConvertToVideoFrame(void* buffer, |
| 53 scoped_refptr<media::VideoFrame> frame) = 0; | 53 scoped_refptr<media::VideoFrame> frame) = 0; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ | 56 #endif // CONTENT_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ |
| OLD | NEW |