| 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 26 matching lines...) Expand all Loading... |
| 37 // media::VideoDecodeAccelerator implementation. | 37 // media::VideoDecodeAccelerator implementation. |
| 38 virtual bool Initialize(media::VideoCodecProfile profile, | 38 virtual bool Initialize(media::VideoCodecProfile profile, |
| 39 Client* client) OVERRIDE; | 39 Client* client) OVERRIDE; |
| 40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; | 40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; |
| 41 virtual void AssignPictureBuffers( | 41 virtual void AssignPictureBuffers( |
| 42 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; | 42 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; |
| 43 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; | 43 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 44 virtual void Flush() OVERRIDE; | 44 virtual void Flush() OVERRIDE; |
| 45 virtual void Reset() OVERRIDE; | 45 virtual void Reset() OVERRIDE; |
| 46 virtual void Destroy() OVERRIDE; | 46 virtual void Destroy() OVERRIDE; |
| 47 virtual bool CanDecodeOnIOThread() OVERRIDE; |
| 47 | 48 |
| 48 // CommandBufferProxyImpl::DeletionObserver implemetnation. | 49 // CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 49 virtual void OnWillDeleteImpl() OVERRIDE; | 50 virtual void OnWillDeleteImpl() OVERRIDE; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 // Only Destroy() should be deleting |this|. | 53 // Only Destroy() should be deleting |this|. |
| 53 virtual ~GpuVideoDecodeAcceleratorHost(); | 54 virtual ~GpuVideoDecodeAcceleratorHost(); |
| 54 | 55 |
| 55 // Notify |client_| of an error. Posts a task to avoid re-entrancy. | 56 // Notify |client_| of an error. Posts a task to avoid re-entrancy. |
| 56 void PostNotifyError(Error); | 57 void PostNotifyError(Error); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 91 |
| 91 // WeakPtr factory for posting tasks back to itself. | 92 // WeakPtr factory for posting tasks back to itself. |
| 92 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 93 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 95 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace content | 98 } // namespace content |
| 98 | 99 |
| 99 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 100 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |