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

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

Issue 7474006: PPB_VideoDecoder_Dev::Initialize is now synchronous! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR update. 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 28 matching lines...) Expand all
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);
44 44
45 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); 45 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
46 void OnProvidePictureBuffer( 46 void OnProvidePictureBuffer(
47 uint32 num_requested_buffers, const gfx::Size& buffer_size); 47 uint32 num_requested_buffers, const gfx::Size& buffer_size);
48 void OnDismissPictureBuffer(int32 picture_buffer_id); 48 void OnDismissPictureBuffer(int32 picture_buffer_id);
49 void OnInitializeDone(); 49 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id);
50 void OnPictureReady(int32 picture_buffer_id,
51 int32 bitstream_buffer_id);
52 void OnFlushDone(); 50 void OnFlushDone();
53 void OnResetDone(); 51 void OnResetDone();
54 void OnEndOfStream(); 52 void OnEndOfStream();
55 void OnErrorNotification(uint32 error); 53 void OnErrorNotification(uint32 error);
56 54
57 // Sends IPC messages to the Gpu process. 55 // Sends IPC messages to the Gpu process.
58 IPC::Message::Sender* ipc_sender_; 56 IPC::Message::Sender* ipc_sender_;
59 57
60 // Route ID for the command buffer associated with the context the GPU Video 58 // Route ID for the command buffer associated with the context the GPU Video
61 // Decoder uses. 59 // Decoder uses.
62 // TODO(fischman): storing route_id's for GPU process entities in the renderer 60 // TODO(fischman): storing route_id's for GPU process entities in the renderer
63 // process is vulnerable to GPU process crashing & being respawned, and 61 // process is vulnerable to GPU process crashing & being respawned, and
64 // attempting to use an outdated or reused route id. 62 // attempting to use an outdated or reused route id.
65 int32 command_buffer_route_id_; 63 int32 command_buffer_route_id_;
66 64
67 // Reference to the client that will receive callbacks from the decoder. 65 // Reference to the client that will receive callbacks from the decoder.
68 media::VideoDecodeAccelerator::Client* client_; 66 media::VideoDecodeAccelerator::Client* client_;
69 67
70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 68 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
71 }; 69 };
72 70
73 #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/common/gpu/media/gpu_video_decode_accelerator.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