Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/gpu/media/mft_angle_video_device.cc

Issue 4113006: Rename UploadToVideoFrame to ConvertToVideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/gpu/media/mft_angle_video_device.h ('k') | chrome/renderer/media/gles2_video_decode_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698