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_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 virtual bool IsMainThread() OVERRIDE; | 146 virtual bool IsMainThread() OVERRIDE; |
147 virtual bool IsIOThread() OVERRIDE; | 147 virtual bool IsIOThread() OVERRIDE; |
148 virtual MessageLoop* GetMainLoop() OVERRIDE; | 148 virtual MessageLoop* GetMainLoop() OVERRIDE; |
149 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; | 149 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; |
150 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; | 150 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; |
151 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( | 151 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( |
152 uint32 size) OVERRIDE; | 152 uint32 size) OVERRIDE; |
153 virtual int32 CreateViewCommandBuffer( | 153 virtual int32 CreateViewCommandBuffer( |
154 int32 surface_id, | 154 int32 surface_id, |
155 const GPUCreateCommandBufferConfig& init_params) OVERRIDE; | 155 const GPUCreateCommandBufferConfig& init_params) OVERRIDE; |
| 156 virtual void CreateImage( |
| 157 gfx::PluginWindowHandle window, |
| 158 int32 image_id, |
| 159 const CreateImageCallback& callback) OVERRIDE; |
| 160 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; |
156 | 161 |
157 // Synchronously establish a channel to the GPU plugin if not previously | 162 // Synchronously establish a channel to the GPU plugin if not previously |
158 // established or if it has been lost (for example if the GPU plugin crashed). | 163 // established or if it has been lost (for example if the GPU plugin crashed). |
159 // If there is a pending asynchronous request, it will be completed by the | 164 // If there is a pending asynchronous request, it will be completed by the |
160 // time this routine returns. | 165 // time this routine returns. |
161 virtual GpuChannelHost* EstablishGpuChannelSync( | 166 virtual GpuChannelHost* EstablishGpuChannelSync( |
162 content::CauseForGpuLaunch) OVERRIDE; | 167 content::CauseForGpuLaunch) OVERRIDE; |
163 | 168 |
164 | 169 |
165 // These methods modify how the next message is sent. Normally, when sending | 170 // These methods modify how the next message is sent. Normally, when sending |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 389 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
385 | 390 |
386 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 391 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
387 | 392 |
388 HistogramCustomizer histogram_customizer_; | 393 HistogramCustomizer histogram_customizer_; |
389 | 394 |
390 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 395 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
391 }; | 396 }; |
392 | 397 |
393 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 398 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |