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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 const gfx::Rect& visible_rect, | 64 const gfx::Rect& visible_rect, |
65 const SkBitmap& pixels) OVERRIDE; | 65 const SkBitmap& pixels) OVERRIDE; |
66 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; | 66 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; |
67 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE; | 67 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE; |
68 | 68 |
69 protected: | 69 protected: |
70 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; | 70 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; |
71 virtual ~RendererGpuVideoAcceleratorFactories(); | 71 virtual ~RendererGpuVideoAcceleratorFactories(); |
72 | 72 |
73 private: | 73 private: |
74 // Helper to bind |context_provider| to the |task_runner_| thread initially. | |
Ami GONE FROM CHROMIUM
2014/02/25 00:06:42
s/r|/r_|/
"initially" is vague.
sheu
2014/02/25 00:50:10
Done.
| |
75 void BindContext(); | |
76 | |
74 // Helper to get a pointer to the WebGraphicsContext3DCommandBufferImpl, | 77 // Helper to get a pointer to the WebGraphicsContext3DCommandBufferImpl, |
75 // if it has not been lost yet. | 78 // if it has not been lost yet. |
76 WebGraphicsContext3DCommandBufferImpl* GetContext3d(); | 79 WebGraphicsContext3DCommandBufferImpl* GetContext3d(); |
77 | 80 |
78 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 81 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
79 scoped_refptr<GpuChannelHost> gpu_channel_host_; | 82 scoped_refptr<GpuChannelHost> gpu_channel_host_; |
80 scoped_refptr<ContextProviderCommandBuffer> context_provider_; | 83 scoped_refptr<ContextProviderCommandBuffer> context_provider_; |
81 | 84 |
82 // For sending requests to allocate shared memory in the Browser process. | 85 // For sending requests to allocate shared memory in the Browser process. |
83 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 86 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
84 | 87 |
85 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 88 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
86 }; | 89 }; |
87 | 90 |
88 } // namespace content | 91 } // namespace content |
89 | 92 |
90 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 93 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |