Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | |
| 6 #define CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "base/memory/weak_ptr.h" | |
| 12 #include "media/filters/gpu_video_decoder.h" | |
| 13 #include "ui/gfx/size.h" | |
| 14 | |
| 15 class GpuChannelHost; | |
| 16 class RendererGLContext; | |
| 17 | |
| 18 // Glue code to expose functionality needed by media::GpuVideoDecoder to | |
| 19 // RenderViewImpl. This class is entirely an implementation detail of | |
| 20 // RenderViewImpl and only has its own header to allow extraction of its | |
| 21 // implementation from render_view_impl.cc which is already far too large. | |
| 22 class RendererGpuVideoDecoderFactories : | |
|
scherkus (not reviewing)
2011/12/09 23:13:55
9 of 10 header files in chrome agree that colons g
| |
| 23 public media::GpuVideoDecoder::Factories { | |
| 24 public: | |
| 25 virtual ~RendererGpuVideoDecoderFactories(); | |
|
scherkus (not reviewing)
2011/12/09 23:13:55
don't we typically put dtors after ctors?
Ami GONE FROM CHROMIUM
2011/12/10 00:03:15
Chrome does (which is suboptimal in general but fi
| |
| 26 // Takes a ref on |gpu_channel_host| and tests |context| for NULL before each | |
| 27 // use. | |
| 28 RendererGpuVideoDecoderFactories(GpuChannelHost* gpu_channel_host, | |
| 29 base::WeakPtr<RendererGLContext> context); | |
| 30 | |
| 31 media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator( | |
| 32 media::VideoDecodeAccelerator::Profile profile, | |
| 33 media::VideoDecodeAccelerator::Client* client) OVERRIDE; | |
| 34 | |
| 35 virtual bool CreateTextures(int32 count, const gfx::Size& size, | |
| 36 std::vector<uint32>* texture_ids) OVERRIDE; | |
| 37 | |
| 38 virtual bool DeleteTexture(uint32 texture_id) OVERRIDE; | |
| 39 | |
| 40 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; | |
| 41 | |
| 42 private: | |
| 43 scoped_refptr<GpuChannelHost> gpu_channel_host_; | |
| 44 base::WeakPtr<RendererGLContext> context_; | |
| 45 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); | |
| 46 }; | |
| 47 | |
| 48 #endif // CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ | |
| OLD | NEW |