false /* share_resources */,
in_process_attribs,
gpu_preference,
- gpu::GLInProcessContextSharedMemoryLimits()));
+ gpu::GLInProcessContextSharedMemoryLimits(),
+ nullptr,
+ nullptr));
return context.Pass();
}
false /* share_resources */,
in_process_attribs,
gpu_preference,
- mem_limits));
+ mem_limits,
+ nullptr,
+ nullptr));
return context.Pass();
}
}
virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(
- uint32 stream_id) OVERRIDE {
+ uint32 stream_id) override {
return gl_in_process_context_->GetSurfaceTexture(stream_id);
}
- virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE {
+ virtual gpu::gles2::GLES2Interface* ContextGL() override {
return context_provider_->ContextGL();
}
- virtual void AddObserver(StreamTextureFactoryContextObserver* obs) OVERRIDE {
+ virtual void AddObserver(StreamTextureFactoryContextObserver* obs) override {
observer_list_.AddObserver(obs);
}
virtual void RemoveObserver(
- StreamTextureFactoryContextObserver* obs) OVERRIDE {
+ StreamTextureFactoryContextObserver* obs) override {
observer_list_.RemoveObserver(obs);
}
scoped_ptr<SynchronousCompositorOutputSurface> output_surface(
new SynchronousCompositorOutputSurface(routing_id,
frame_swap_message_queue));
- return output_surface.PassAs<cc::OutputSurface>();
+ return output_surface.Pass();
}
InputHandlerManagerClient*
scoped_refptr<cc::ContextProvider> SynchronousCompositorFactoryImpl::
CreateOnscreenContextProviderForCompositorThread() {
- DCHECK(service_);
+ DCHECK(service_.get());
gpu::GLInProcessContextSharedMemoryLimits mem_limits;
// This is half of what RenderWidget uses because synchronous compositor
return factory;
}
-webkit::gpu::WebGraphicsContext3DImpl*
+webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl*
SynchronousCompositorFactoryImpl::CreateOffscreenGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes) {
return WrapContextWithAttributes(CreateOffscreenContext(attributes),
void SynchronousCompositorFactoryImpl::CompositorInitializedHardwareDraw() {
base::AutoLock lock(num_hardware_compositor_lock_);
num_hardware_compositors_++;
- if (num_hardware_compositors_ == 1 && main_thread_proxy_) {
+ if (num_hardware_compositors_ == 1 && main_thread_proxy_.get()) {
main_thread_proxy_->PostTask(
FROM_HERE,
base::Bind(
}
void SynchronousCompositorFactoryImpl::RestoreContextOnMainThread() {
- if (CanCreateMainThreadContext() && video_context_provider_ )
+ if (CanCreateMainThreadContext() && video_context_provider_.get())
video_context_provider_->RestoreContext();
}
scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>();
}
- if (!video_context_provider_) {
- DCHECK(service_);
+ if (!video_context_provider_.get()) {
+ DCHECK(service_.get());
video_context_provider_ = new VideoContextProvider(
CreateContext(service_,
void SynchronousCompositorFactoryImpl::SetDeferredGpuService(
scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
- DCHECK(!service_);
+ DCHECK(!service_.get());
service_ = service;
}