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

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

Issue 7065010: Add initialization callback support for Video Decoder PPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Delete TODO and bump up the ppb version Created 9 years, 7 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_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 46 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
47 virtual bool Flush() OVERRIDE; 47 virtual bool Flush() OVERRIDE;
48 virtual bool Abort() OVERRIDE; 48 virtual bool Abort() OVERRIDE;
49 49
50 private: 50 private:
51 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); 51 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
52 void OnProvidePictureBuffer( 52 void OnProvidePictureBuffer(
53 uint32 num_requested_buffers, const gfx::Size& buffer_size); 53 uint32 num_requested_buffers, const gfx::Size& buffer_size);
54 void OnDismissPictureBuffer(int32 picture_buffer_id); 54 void OnDismissPictureBuffer(int32 picture_buffer_id);
55 void OnCreateDone(int32 decoder_id); 55 void OnCreateDone(int32 decoder_id);
56 void OnInitializeDone();
56 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id); 57 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id);
57 void OnFlushDone(); 58 void OnFlushDone();
58 void OnAbortDone(); 59 void OnAbortDone();
59 void OnEndOfStream(); 60 void OnEndOfStream();
60 void OnErrorNotification(uint32 error); 61 void OnErrorNotification(uint32 error);
61 62
62 // A router used to send us IPC messages. 63 // A router used to send us IPC messages.
63 MessageRouter* router_; 64 MessageRouter* router_;
64 65
65 // Sends IPC messages to the Gpu process. 66 // Sends IPC messages to the Gpu process.
66 IPC::Message::Sender* ipc_sender_; 67 IPC::Message::Sender* ipc_sender_;
67 68
68 // ID of this GpuVideoDecodeAcceleratorHost. 69 // ID of this GpuVideoDecodeAcceleratorHost.
69 int32 decoder_host_id_; 70 int32 decoder_host_id_;
70 71
71 // ID of VideoDecodeAccelerator in the Gpu process. 72 // ID of VideoDecodeAccelerator in the Gpu process.
72 int32 decoder_id_; 73 int32 decoder_id_;
73 74
74 // Temporarily store configs here in between Create and Initialize phase. 75 // Temporarily store configs here in between Create and Initialize phase.
75 std::vector<uint32> configs_; 76 std::vector<uint32> configs_;
76 77
77 // Reference to the client that will receive callbacks from the decoder. 78 // Reference to the client that will receive callbacks from the decoder.
78 media::VideoDecodeAccelerator::Client* client_; 79 media::VideoDecodeAccelerator::Client* client_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 81 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
81 }; 82 };
82 83
83 #endif // CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 84 #endif // CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698