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

Side by Side Diff: content/gpu/media/fake_gl_video_device.h

Issue 6793054: Moved code that runs in both the browser and GPU process from content/gpu to content/common/gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_GPU_MEDIA_FAKE_GL_VIDEO_DEVICE_H_
6 #define CONTENT_GPU_MEDIA_FAKE_GL_VIDEO_DEVICE_H_
7
8 #include "content/gpu/media/gpu_video_device.h"
9
10 // A simple GpuVideoDevice that create VideoFrame with GL textures.
11 // It uploads frames in RGBA format in system memory to the GL texture.
12 class FakeGlVideoDevice : public GpuVideoDevice {
13 public:
14 virtual ~FakeGlVideoDevice() {}
15
16 virtual void* GetDevice();
17 virtual bool CreateVideoFrameFromGlTextures(
18 size_t width, size_t height, media::VideoFrame::Format format,
19 const std::vector<media::VideoFrame::GlTexture>& textures,
20 scoped_refptr<media::VideoFrame>* frame);
21 virtual void ReleaseVideoFrame(
22 const scoped_refptr<media::VideoFrame>& frame);
23 virtual bool ConvertToVideoFrame(void* buffer,
24 scoped_refptr<media::VideoFrame> frame);
25 };
26
27 #endif // CONTENT_GPU_MEDIA_FAKE_GL_VIDEO_DEVICE_H_
OLDNEW
« no previous file with comments | « content/gpu/media/fake_gl_video_decode_engine.cc ('k') | content/gpu/media/fake_gl_video_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698