return;
}
- scoped_refptr<viz::RasterContextProvider> worker_context_provider =
+ scoped_refptr<ui::ContextProviderCommandBuffer> worker_context_provider =
SharedCompositorWorkerContextProvider();
if (!worker_context_provider) {
// Cause the compositor to wait and try again.
gpu_channel_host, GetGpuMemoryBufferManager(), kGpuStreamIdDefault,
kGpuStreamPriorityDefault, gpu::kNullSurfaceHandle, url,
automatic_flushes, support_locking, support_grcontext, limits,
- attributes, nullptr /* share_context */,
+ attributes, worker_context_provider.get() /* share_context */,
ui::command_buffer_metrics::RENDER_COMPOSITOR_CONTEXT));
if (layout_test_deps_) {
return categorized_worker_pool_.get();
}
-scoped_refptr<viz::RasterContextProvider>
+scoped_refptr<ui::ContextProviderCommandBuffer>
RenderThreadImpl::SharedCompositorWorkerContextProvider() {
DCHECK(IsMainThread());
// Try to reuse existing shared worker context provider.
std::move(gpu_channel_host), GetGpuMemoryBufferManager(),
gpu::SharedMemoryLimits(), support_locking, support_gles2_interface,
support_raster_interface, support_oop_rasterization, support_grcontext,
- ui::command_buffer_metrics::RENDER_WORKER_CONTEXT, kGpuStreamIdWorker,
- kGpuStreamPriorityWorker);
+ ui::command_buffer_metrics::RENDER_WORKER_CONTEXT, kGpuStreamIdDefault,
+ kGpuStreamPriorityDefault);
auto result = shared_worker_context_provider_->BindToCurrentThread();
if (result != gpu::ContextResult::kSuccess)
shared_worker_context_provider_ = nullptr;
// Returns a worker context provider that will be bound on the compositor
// thread.
- scoped_refptr<viz::RasterContextProvider>
+ scoped_refptr<ui::ContextProviderCommandBuffer>
SharedCompositorWorkerContextProvider();
// Causes the idle handler to skip sending idle notifications
base::ObserverList<RenderThreadObserver> observers_;
- scoped_refptr<viz::RasterContextProvider> shared_worker_context_provider_;
+ scoped_refptr<ui::ContextProviderCommandBuffer>
+ shared_worker_context_provider_;
std::unique_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;