| 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 #include "chrome/gpu/media/mft_angle_video_device.h" | 5 #include "chrome/gpu/media/mft_angle_video_device.h" |
| 6 | 6 |
| 7 #include <d3d9.h> | 7 #include <d3d9.h> |
| 8 | 8 |
| 9 #include "media/base/video_frame.h" | 9 #include "media/base/video_frame.h" |
| 10 #include "third_party/angle/src/libGLESv2/main.h" | 10 #include "third_party/angle/src/libGLESv2/main.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 frame); | 36 frame); |
| 37 return *frame != NULL; | 37 return *frame != NULL; |
| 38 } | 38 } |
| 39 | 39 |
| 40 void MftAngleVideoDevice::ReleaseVideoFrame( | 40 void MftAngleVideoDevice::ReleaseVideoFrame( |
| 41 const scoped_refptr<media::VideoFrame>& frame) { | 41 const scoped_refptr<media::VideoFrame>& frame) { |
| 42 // We didn't need to anything here because we didn't allocate any resources | 42 // We didn't need to anything here because we didn't allocate any resources |
| 43 // for the VideoFrame(s) generated. | 43 // for the VideoFrame(s) generated. |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool MftAngleVideoDevice::UploadToVideoFrame( | 46 bool MftAngleVideoDevice::ConvertToVideoFrame( |
| 47 void* buffer, scoped_refptr<media::VideoFrame> frame) { | 47 void* buffer, scoped_refptr<media::VideoFrame> frame) { |
| 48 gl::Context* context = (gl::Context*)eglGetCurrentContext(); | 48 gl::Context* context = (gl::Context*)eglGetCurrentContext(); |
| 49 // TODO(hclam): Connect ANGLE to upload the surface to texture when changes | 49 // TODO(hclam): Connect ANGLE to upload the surface to texture when changes |
| 50 // to ANGLE is done. | 50 // to ANGLE is done. |
| 51 return true; | 51 return true; |
| 52 } | 52 } |
| OLD | NEW |