| 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_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 6 #define CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class RendererGpuVideoDecoderFactories | 22 class RendererGpuVideoDecoderFactories |
| 23 : public media::GpuVideoDecoder::Factories { | 23 : public media::GpuVideoDecoder::Factories { |
| 24 public: | 24 public: |
| 25 // Takes a ref on |gpu_channel_host| and tests |context| for NULL before each | 25 // Takes a ref on |gpu_channel_host| and tests |context| for NULL before each |
| 26 // use. | 26 // use. |
| 27 RendererGpuVideoDecoderFactories(GpuChannelHost* gpu_channel_host, | 27 RendererGpuVideoDecoderFactories(GpuChannelHost* gpu_channel_host, |
| 28 base::WeakPtr<RendererGLContext> context); | 28 base::WeakPtr<RendererGLContext> context); |
| 29 | 29 |
| 30 virtual ~RendererGpuVideoDecoderFactories(); | 30 virtual ~RendererGpuVideoDecoderFactories(); |
| 31 | 31 |
| 32 media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator( | 32 virtual media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator( |
| 33 media::VideoDecodeAccelerator::Profile profile, | 33 media::VideoDecodeAccelerator::Profile profile, |
| 34 media::VideoDecodeAccelerator::Client* client) OVERRIDE; | 34 media::VideoDecodeAccelerator::Client* client) OVERRIDE; |
| 35 | 35 |
| 36 virtual bool CreateTextures(int32 count, const gfx::Size& size, | 36 virtual bool CreateTextures(int32 count, const gfx::Size& size, |
| 37 std::vector<uint32>* texture_ids) OVERRIDE; | 37 std::vector<uint32>* texture_ids) OVERRIDE; |
| 38 | 38 |
| 39 virtual bool DeleteTexture(uint32 texture_id) OVERRIDE; | 39 virtual bool DeleteTexture(uint32 texture_id) OVERRIDE; |
| 40 | 40 |
| 41 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; | 41 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 scoped_refptr<GpuChannelHost> gpu_channel_host_; | 44 scoped_refptr<GpuChannelHost> gpu_channel_host_; |
| 45 base::WeakPtr<RendererGLContext> context_; | 45 base::WeakPtr<RendererGLContext> context_; |
| 46 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); | 46 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | 49 #endif // CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ |
| OLD | NEW |