| 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 CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void OnDismissPictureBuffer(int32 picture_buffer_id); | 66 void OnDismissPictureBuffer(int32 picture_buffer_id); |
| 67 void OnPictureReady(int32 picture_buffer_id, | 67 void OnPictureReady(int32 picture_buffer_id, |
| 68 int32 bitstream_buffer_id, | 68 int32 bitstream_buffer_id, |
| 69 const gfx::Rect& visible_rect); | 69 const gfx::Rect& visible_rect); |
| 70 void OnFlushDone(); | 70 void OnFlushDone(); |
| 71 void OnResetDone(); | 71 void OnResetDone(); |
| 72 void OnNotifyError(uint32 error); | 72 void OnNotifyError(uint32 error); |
| 73 | 73 |
| 74 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU | 74 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU |
| 75 // process. |channel_| outlives |impl_|, so the reference is always valid as | 75 // process. |channel_| outlives |impl_|, so the reference is always valid as |
| 76 // long as it is not NULL. | 76 // long as it is not nullptr. |
| 77 GpuChannelHost* channel_; | 77 GpuChannelHost* channel_; |
| 78 | 78 |
| 79 // Route ID for the associated decoder in the GPU process. | 79 // Route ID for the associated decoder in the GPU process. |
| 80 int32 decoder_route_id_; | 80 int32 decoder_route_id_; |
| 81 | 81 |
| 82 // The client that will receive callbacks from the decoder. | 82 // The client that will receive callbacks from the decoder. |
| 83 Client* client_; | 83 Client* client_; |
| 84 | 84 |
| 85 // Unowned reference to the CommandBufferProxyImpl that created us. |this| | 85 // Unowned reference to the CommandBufferProxyImpl that created us. |this| |
| 86 // registers as a DeletionObserver of |impl_|, the so reference is always | 86 // registers as a DeletionObserver of |impl_|, the so reference is always |
| 87 // valid as long as it is not NULL. | 87 // valid as long as it is not nullptr. |
| 88 CommandBufferProxyImpl* impl_; | 88 CommandBufferProxyImpl* impl_; |
| 89 | 89 |
| 90 // Requested dimensions of the buffer, from ProvidePictureBuffers(). | 90 // Requested dimensions of the buffer, from ProvidePictureBuffers(). |
| 91 gfx::Size picture_buffer_dimensions_; | 91 gfx::Size picture_buffer_dimensions_; |
| 92 | 92 |
| 93 // WeakPtr factory for posting tasks back to itself. | 93 // WeakPtr factory for posting tasks back to itself. |
| 94 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 94 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 96 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace content | 99 } // namespace content |
| 100 | 100 |
| 101 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 101 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |