OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 CreateVideoEncodeAccelerator() OVERRIDE; | 50 CreateVideoEncodeAccelerator() OVERRIDE; |
51 // Creates textures and produces them into mailboxes. Returns a sync point to | 51 // Creates textures and produces them into mailboxes. Returns a sync point to |
52 // wait on before using the mailboxes, or 0 on failure. | 52 // wait on before using the mailboxes, or 0 on failure. |
53 virtual uint32 CreateTextures(int32 count, | 53 virtual uint32 CreateTextures(int32 count, |
54 const gfx::Size& size, | 54 const gfx::Size& size, |
55 std::vector<uint32>* texture_ids, | 55 std::vector<uint32>* texture_ids, |
56 std::vector<gpu::Mailbox>* texture_mailboxes, | 56 std::vector<gpu::Mailbox>* texture_mailboxes, |
57 uint32 texture_target) OVERRIDE; | 57 uint32 texture_target) OVERRIDE; |
58 virtual void DeleteTexture(uint32 texture_id) OVERRIDE; | 58 virtual void DeleteTexture(uint32 texture_id) OVERRIDE; |
59 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; | 59 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; |
60 virtual void ReadPixels(uint32 texture_id, | 60 virtual void ReadPixels(const scoped_refptr<media::VideoFrame>& video_frame, |
61 const gfx::Rect& visible_rect, | |
62 const SkBitmap& pixels) OVERRIDE; | 61 const SkBitmap& pixels) OVERRIDE; |
63 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; | 62 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; |
64 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE; | 63 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE; |
65 | 64 |
66 private: | 65 private: |
67 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; | 66 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; |
68 RendererGpuVideoAcceleratorFactories( | 67 RendererGpuVideoAcceleratorFactories( |
69 GpuChannelHost* gpu_channel_host, | 68 GpuChannelHost* gpu_channel_host, |
70 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, | 69 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, |
71 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); | 70 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); |
(...skipping 13 matching lines...) Expand all Loading... |
85 | 84 |
86 // For sending requests to allocate shared memory in the Browser process. | 85 // For sending requests to allocate shared memory in the Browser process. |
87 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 86 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 88 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace content | 91 } // namespace content |
93 | 92 |
94 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 93 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |