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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 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: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 807e419db49d8cba2ce44bd1c0841890c1ccf0f1..a3b841a11d3e7b49323ae9c71a2045ffe325b9b4 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -592,10 +592,10 @@ static void CreateContextProviderOnMainThread(
ContextProviderCreationInfo* creation_info,
WaitableEvent* waitable_event) {
ASSERT(IsMainThread());
- creation_info->created_context_provider = WTF::WrapUnique(
+ creation_info->created_context_provider =
Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
creation_info->context_attributes, creation_info->url, 0,
- creation_info->gl_info));
+ creation_info->gl_info);
waitable_event->Signal();
}
@@ -659,9 +659,9 @@ WebGLRenderingContextBase::CreateContextProviderInternal(
const auto& url = canvas ? canvas->GetDocument().TopDocument().Url()
: ExecutionContext::From(script_state)->Url();
if (IsMainThread()) {
- context_provider = WTF::WrapUnique(
+ context_provider =
Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
- context_attributes, url, 0, &gl_info));
+ context_attributes, url, 0, &gl_info);
} else {
context_provider =
CreateContextProviderOnWorkerThread(context_attributes, &gl_info, url);
@@ -7502,9 +7502,9 @@ void WebGLRenderingContextBase::MaybeRestoreContext(TimerBase*) {
const auto& url = host()->GetExecutionContextUrl();
if (IsMainThread()) {
- context_provider = WTF::WrapUnique(
+ context_provider =
Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
- attributes, url, 0, &gl_info));
+ attributes, url, 0, &gl_info);
} else {
context_provider =
CreateContextProviderOnWorkerThread(attributes, &gl_info, url);

Powered by Google App Engine
This is Rietveld 408576698