Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 16235005: Add ContextProvider overrides to SynchronousCompositorFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Returns a graphics context shared among all 270 // Returns a graphics context shared among all
271 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned 271 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned
272 // by this class and must be null-tested before each use to detect context 272 // by this class and must be null-tested before each use to detect context
273 // loss. The returned context is only valid on the compositor thread when 273 // loss. The returned context is only valid on the compositor thread when
274 // threaded compositing is enabled. 274 // threaded compositing is enabled.
275 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); 275 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D();
276 276
277 // Handle loss of the shared GpuVDAContext3D context above. 277 // Handle loss of the shared GpuVDAContext3D context above.
278 static void OnGpuVDAContextLoss(); 278 static void OnGpuVDAContextLoss();
279 279
280 scoped_refptr<ContextProviderCommandBuffer> 280 scoped_refptr<cc::ContextProvider>
281 OffscreenContextProviderForMainThread(); 281 OffscreenContextProviderForMainThread();
282 scoped_refptr<ContextProviderCommandBuffer> 282 scoped_refptr<cc::ContextProvider>
283 OffscreenContextProviderForCompositorThread(); 283 OffscreenContextProviderForCompositorThread();
284 284
285 // AudioRendererMixerManager instance which manages renderer side mixer 285 // AudioRendererMixerManager instance which manages renderer side mixer
286 // instances shared based on configured audio parameters. Lazily created on 286 // instances shared based on configured audio parameters. Lazily created on
287 // first call. 287 // first call.
288 AudioRendererMixerManager* GetAudioRendererMixerManager(); 288 AudioRendererMixerManager* GetAudioRendererMixerManager();
289 289
290 // AudioHardwareConfig contains audio hardware configuration for 290 // AudioHardwareConfig contains audio hardware configuration for
291 // renderer side clients. Creation requires a synchronous IPC call so it is 291 // renderer side clients. Creation requires a synchronous IPC call so it is
292 // lazily created on the first call. 292 // lazily created on the first call.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 456 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
457 457
458 HistogramCustomizer histogram_customizer_; 458 HistogramCustomizer histogram_customizer_;
459 459
460 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 460 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
461 }; 461 };
462 462
463 } // namespace content 463 } // namespace content
464 464
465 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 465 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698