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

Side by Side Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.h

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responding to brettw Created 9 years, 4 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
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_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 12 matching lines...) Expand all
23 GpuVideoDecodeAcceleratorHost(IPC::Message::Sender* ipc_sender, 23 GpuVideoDecodeAcceleratorHost(IPC::Message::Sender* ipc_sender,
24 int32 command_buffer_route_id, 24 int32 command_buffer_route_id,
25 media::VideoDecodeAccelerator::Client* client); 25 media::VideoDecodeAccelerator::Client* client);
26 virtual ~GpuVideoDecodeAcceleratorHost(); 26 virtual ~GpuVideoDecodeAcceleratorHost();
27 27
28 // IPC::Channel::Listener implementation. 28 // IPC::Channel::Listener implementation.
29 virtual void OnChannelError() OVERRIDE; 29 virtual void OnChannelError() OVERRIDE;
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 31
32 // media::VideoDecodeAccelerator implementation. 32 // media::VideoDecodeAccelerator implementation.
33 virtual bool Initialize(const std::vector<uint32>& configs) OVERRIDE; 33 virtual bool Initialize(const std::vector<int32>& configs) OVERRIDE;
34 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 34 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
35 virtual void AssignPictureBuffers( 35 virtual void AssignPictureBuffers(
36 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 36 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
37 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 37 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
38 virtual void Flush() OVERRIDE; 38 virtual void Flush() OVERRIDE;
39 virtual void Reset() OVERRIDE; 39 virtual void Reset() OVERRIDE;
40 virtual void Destroy() OVERRIDE; 40 virtual void Destroy() OVERRIDE;
41 41
42 private: 42 private:
43 void Send(IPC::Message* message); 43 void Send(IPC::Message* message);
(...skipping 18 matching lines...) Expand all
62 // attempting to use an outdated or reused route id. 62 // attempting to use an outdated or reused route id.
63 int32 command_buffer_route_id_; 63 int32 command_buffer_route_id_;
64 64
65 // Reference to the client that will receive callbacks from the decoder. 65 // Reference to the client that will receive callbacks from the decoder.
66 media::VideoDecodeAccelerator::Client* client_; 66 media::VideoDecodeAccelerator::Client* client_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 68 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
69 }; 69 };
70 70
71 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 71 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698