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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1844363003: Move WebGraphicsContext3D::Attributes to Platform::ContextAttributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-alphadepthetc
Patch Set: move-attributes: rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index f5d9a853e1d2a6af4a79e2813df8c9c2a6dbf20f..2d459fed873670bb2d46fff3866b496baf36a5d7 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -1006,7 +1006,8 @@ static void Collect3DContextInformationOnFailure(
blink::WebGraphicsContext3DProvider*
RendererBlinkPlatformImpl::createOffscreenGraphicsContext3DProvider(
- const blink::WebGraphicsContext3D::Attributes& web_attributes,
+ const blink::Platform::ContextAttributes& web_attributes,
+ const blink::WebURL& top_document_web_url,
blink::WebGraphicsContext3DProvider* share_provider,
blink::Platform::GraphicsInfo* gl_info) {
DCHECK(gl_info);
@@ -1048,13 +1049,13 @@ RendererBlinkPlatformImpl::createOffscreenGraphicsContext3DProvider(
gfx::GpuPreference gpu_preference = web_attributes.preferDiscreteGPU
? gfx::PreferDiscreteGpu
: gfx::PreferIntegratedGpu;
- GURL url = blink::WebStringToGURL(web_attributes.topDocumentURL);
WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits limits;
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
gpu_channel_host.get(), attributes, gpu_preference, share_resources,
- automatic_flushes, url, limits, share_context));
+ automatic_flushes, GURL(top_document_web_url), limits,
+ share_context));
scoped_refptr<ContextProviderCommandBuffer> provider =
ContextProviderCommandBuffer::Create(std::move(context),
RENDERER_MAINTHREAD_CONTEXT);

Powered by Google App Engine
This is Rietveld 408576698