context.Pass(), GetDefaultAttribs()));
}
+scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
+WrapContextWithAttributes(
+ scoped_ptr<gpu::GLInProcessContext> context,
+ const blink::WebGraphicsContext3D::Attributes& attributes) {
+ if (!context.get())
+ return scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>();
+
+ return scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>(
+ WebGraphicsContext3DInProcessCommandBufferImpl::WrapContext(
+ context.Pass(), attributes));
+}
+
class VideoContextProvider
: public StreamTextureFactorySynchronousImpl::ContextProvider {
public:
blink::WebGraphicsContext3D*
SynchronousCompositorFactoryImpl::CreateOffscreenGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes) {
- return WrapContext(CreateOffscreenContext(attributes)).release();
+ return WrapContextWithAttributes(CreateOffscreenContext(attributes),
+ attributes).release();
}
void SynchronousCompositorFactoryImpl::CompositorInitializedHardwareDraw() {
service_ = service;
}
-void SynchronousCompositorFactoryImpl::DisableRecordFullLayer() {
- record_full_layer_ = false;
+void SynchronousCompositorFactoryImpl::SetRecordFullDocument(
+ bool record_full_document) {
+ record_full_layer_ = record_full_document;
}
} // namespace content