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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 8510039: Initial implementation of the DXVA 2.0 H.264 hardware decoder for pepper for Windows. The decodin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 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 CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 27 matching lines...) Expand all
38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; 38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE;
39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; 39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
40 virtual void NotifyFlushDone() OVERRIDE; 40 virtual void NotifyFlushDone() OVERRIDE;
41 virtual void NotifyResetDone() OVERRIDE; 41 virtual void NotifyResetDone() OVERRIDE;
42 42
43 // Function to delegate sending to actual sender. 43 // Function to delegate sending to actual sender.
44 virtual bool Send(IPC::Message* message) OVERRIDE; 44 virtual bool Send(IPC::Message* message) OVERRIDE;
45 45
46 // Initialize the accelerator with the given profile and send the 46 // Initialize the accelerator with the given profile and send the
47 // |init_done_msg| when done. 47 // |init_done_msg| when done.
48 // The renderer process handle is valid as long as we have a channel between
49 // GPU process and the renderer.
48 void Initialize(const media::VideoDecodeAccelerator::Profile profile, 50 void Initialize(const media::VideoDecodeAccelerator::Profile profile,
49 IPC::Message* init_done_msg); 51 IPC::Message* init_done_msg,
52 base::ProcessHandle renderer_process);
50 53
51 private: 54 private:
52 55
53 // Handlers for IPC messages. 56 // Handlers for IPC messages.
54 void OnDecode(base::SharedMemoryHandle handle, int32 id, int32 size); 57 void OnDecode(base::SharedMemoryHandle handle, int32 id, int32 size);
55 void OnAssignPictureBuffers( 58 void OnAssignPictureBuffers(
56 const std::vector<int32>& buffer_ids, 59 const std::vector<int32>& buffer_ids,
57 const std::vector<uint32>& texture_ids, 60 const std::vector<uint32>& texture_ids,
58 const std::vector<gfx::Size>& sizes); 61 const std::vector<gfx::Size>& sizes);
59 void OnReusePictureBuffer( 62 void OnReusePictureBuffer(
(...skipping 16 matching lines...) Expand all
76 // Unowned pointer to the underlying GpuCommandBufferStub. 79 // Unowned pointer to the underlying GpuCommandBufferStub.
77 GpuCommandBufferStub* stub_; 80 GpuCommandBufferStub* stub_;
78 81
79 // Pointer to the underlying VideoDecodeAccelerator. 82 // Pointer to the underlying VideoDecodeAccelerator.
80 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; 83 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_;
81 84
82 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 85 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
83 }; 86 };
84 87
85 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 88 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698