| OLD | NEW |
| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 private: | 45 private: |
| 46 void Send(IPC::Message* message); | 46 void Send(IPC::Message* message); |
| 47 | 47 |
| 48 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); | 48 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); |
| 49 void OnProvidePictureBuffer( | 49 void OnProvidePictureBuffer( |
| 50 uint32 num_requested_buffers, const gfx::Size& buffer_size); | 50 uint32 num_requested_buffers, const gfx::Size& buffer_size); |
| 51 void OnDismissPictureBuffer(int32 picture_buffer_id); | 51 void OnDismissPictureBuffer(int32 picture_buffer_id); |
| 52 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id); | 52 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id); |
| 53 void OnFlushDone(); | 53 void OnFlushDone(); |
| 54 void OnResetDone(); | 54 void OnResetDone(); |
| 55 void OnEndOfStream(); | |
| 56 void OnErrorNotification(uint32 error); | 55 void OnErrorNotification(uint32 error); |
| 57 | 56 |
| 58 // Sends IPC messages to the Gpu process. | 57 // Sends IPC messages to the Gpu process. |
| 59 GpuChannelHost* channel_; | 58 GpuChannelHost* channel_; |
| 60 | 59 |
| 61 // Route ID for the associated decoder in the GPU process. | 60 // Route ID for the associated decoder in the GPU process. |
| 62 // TODO(fischman): storing route_id's for GPU process entities in the renderer | 61 // TODO(fischman): storing route_id's for GPU process entities in the renderer |
| 63 // process is vulnerable to GPU process crashing & being respawned, and | 62 // process is vulnerable to GPU process crashing & being respawned, and |
| 64 // attempting to use an outdated or reused route id. | 63 // attempting to use an outdated or reused route id. |
| 65 int32 decoder_route_id_; | 64 int32 decoder_route_id_; |
| 66 | 65 |
| 67 // Reference to the client that will receive callbacks from the decoder. | 66 // Reference to the client that will receive callbacks from the decoder. |
| 68 media::VideoDecodeAccelerator::Client* client_; | 67 media::VideoDecodeAccelerator::Client* client_; |
| 69 | 68 |
| 70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 69 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 72 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |