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

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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // Returns a graphics context shared among all 271 // Returns a graphics context shared among all
272 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned 272 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned
273 // by this class and must be null-tested before each use to detect context 273 // by this class and must be null-tested before each use to detect context
274 // loss. The returned context is only valid on the compositor thread when 274 // loss. The returned context is only valid on the compositor thread when
275 // threaded compositing is enabled. 275 // threaded compositing is enabled.
276 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); 276 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D();
277 277
278 // Handle loss of the shared GpuVDAContext3D context above. 278 // Handle loss of the shared GpuVDAContext3D context above.
279 static void OnGpuVDAContextLoss(); 279 static void OnGpuVDAContextLoss();
280 280
281 scoped_refptr<ContextProviderCommandBuffer> 281 scoped_refptr<cc::ContextProvider>
282 OffscreenContextProviderForMainThread(); 282 OffscreenContextProviderForMainThread();
283 scoped_refptr<ContextProviderCommandBuffer> 283 scoped_refptr<cc::ContextProvider>
284 OffscreenContextProviderForCompositorThread(); 284 OffscreenContextProviderForCompositorThread();
285 285
286 // AudioRendererMixerManager instance which manages renderer side mixer 286 // AudioRendererMixerManager instance which manages renderer side mixer
287 // instances shared based on configured audio parameters. Lazily created on 287 // instances shared based on configured audio parameters. Lazily created on
288 // first call. 288 // first call.
289 AudioRendererMixerManager* GetAudioRendererMixerManager(); 289 AudioRendererMixerManager* GetAudioRendererMixerManager();
290 290
291 // AudioHardwareConfig contains audio hardware configuration for 291 // AudioHardwareConfig contains audio hardware configuration for
292 // renderer side clients. Creation requires a synchronous IPC call so it is 292 // renderer side clients. Creation requires a synchronous IPC call so it is
293 // lazily created on the first call. 293 // lazily created on the first call.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 459 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
460 460
461 HistogramCustomizer histogram_customizer_; 461 HistogramCustomizer histogram_customizer_;
462 462
463 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 463 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
464 }; 464 };
465 465
466 } // namespace content 466 } // namespace content
467 467
468 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 468 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_factory.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698