| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Notify |client_| of an error. Posts a task to avoid re-entrancy. | 57 // Notify |client_| of an error. Posts a task to avoid re-entrancy. |
| 58 void PostNotifyError(Error); | 58 void PostNotifyError(Error); |
| 59 | 59 |
| 60 void Send(IPC::Message* message); | 60 void Send(IPC::Message* message); |
| 61 | 61 |
| 62 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU | 62 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU |
| 63 // process. Should not be called directly. | 63 // process. Should not be called directly. |
| 64 void OnInitializationComplete(bool success); | 64 void OnInitializationComplete(bool success); |
| 65 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); | 65 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); |
| 66 void OnProvidePictureBuffer(uint32_t num_requested_buffers, | 66 void OnProvidePictureBuffer(uint32_t num_requested_buffers, |
| 67 VideoPixelFormat format, | |
| 68 uint32_t textures_per_buffer, | 67 uint32_t textures_per_buffer, |
| 69 const gfx::Size& dimensions, | 68 const gfx::Size& dimensions, |
| 70 uint32_t texture_target); | 69 uint32_t texture_target); |
| 71 void OnDismissPictureBuffer(int32_t picture_buffer_id); | 70 void OnDismissPictureBuffer(int32_t picture_buffer_id); |
| 72 void OnPictureReady(int32_t picture_buffer_id, | 71 void OnPictureReady(int32_t picture_buffer_id, |
| 73 int32_t bitstream_buffer_id, | 72 int32_t bitstream_buffer_id, |
| 74 const gfx::Rect& visible_rect, | 73 const gfx::Rect& visible_rect, |
| 75 bool allow_overlay, | 74 bool allow_overlay, |
| 76 bool size_changed); | 75 bool size_changed); |
| 77 void OnFlushDone(); | 76 void OnFlushDone(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 96 | 95 |
| 97 // WeakPtr factory for posting tasks back to itself. | 96 // WeakPtr factory for posting tasks back to itself. |
| 98 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 97 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 99 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace media | 102 } // namespace media |
| 104 | 103 |
| 105 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 104 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |