| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ |
| 6 #define CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ | 6 #define CHROME_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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 scoped_refptr<media::VideoFrame>* frame) = 0; | 42 scoped_refptr<media::VideoFrame>* frame) = 0; |
| 43 | 43 |
| 44 // Release VideoFrame generated. | 44 // Release VideoFrame generated. |
| 45 virtual void ReleaseVideoFrame( | 45 virtual void ReleaseVideoFrame( |
| 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 // TODO(hclam): Rename this to ConvertToVideoFrame(). | 52 virtual bool ConvertToVideoFrame(void* buffer, |
| 53 virtual bool UploadToVideoFrame(void* buffer, | 53 scoped_refptr<media::VideoFrame> frame) = 0; |
| 54 scoped_refptr<media::VideoFrame> frame) = 0; | |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 #endif // CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ | 56 #endif // CHROME_GPU_MEDIA_GPU_VIDEO_DEVICE_H_ |
| OLD | NEW |