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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2624443003: Enable ThreadRestrictionVerifier for StringImpl (Closed)
Patch Set: Get rid of vestigial debugging code Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 // Outputs. 578 // Outputs.
579 std::unique_ptr<WebGraphicsContext3DProvider> createdContextProvider; 579 std::unique_ptr<WebGraphicsContext3DProvider> createdContextProvider;
580 }; 580 };
581 581
582 static void createContextProviderOnMainThread( 582 static void createContextProviderOnMainThread(
583 ContextProviderCreationInfo* creationInfo, 583 ContextProviderCreationInfo* creationInfo,
584 WaitableEvent* waitableEvent) { 584 WaitableEvent* waitableEvent) {
585 ASSERT(isMainThread()); 585 ASSERT(isMainThread());
586 creationInfo->createdContextProvider = WTF::wrapUnique( 586 creationInfo->createdContextProvider = WTF::wrapUnique(
587 Platform::current()->createOffscreenGraphicsContext3DProvider( 587 Platform::current()->createOffscreenGraphicsContext3DProvider(
588 creationInfo->contextAttributes, creationInfo->url, 0, 588 creationInfo->contextAttributes, creationInfo->url.copy(), 0,
589 creationInfo->glInfo)); 589 creationInfo->glInfo));
590 waitableEvent->signal(); 590 waitableEvent->signal();
591 } 591 }
592 592
593 static std::unique_ptr<WebGraphicsContext3DProvider> 593 static std::unique_ptr<WebGraphicsContext3DProvider>
594 createContextProviderOnWorkerThread( 594 createContextProviderOnWorkerThread(
595 Platform::ContextAttributes contextAttributes, 595 Platform::ContextAttributes contextAttributes,
596 Platform::GraphicsInfo* glInfo, 596 Platform::GraphicsInfo* glInfo,
597 const KURL& url) { 597 const KURL& url) {
598 WaitableEvent waitableEvent; 598 WaitableEvent waitableEvent;
(...skipping 7196 matching lines...) Expand 10 before | Expand all | Expand 10 after
7795 7795
7796 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( 7796 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas(
7797 HTMLCanvasElementOrOffscreenCanvas& result) const { 7797 HTMLCanvasElementOrOffscreenCanvas& result) const {
7798 if (canvas()) 7798 if (canvas())
7799 result.setHTMLCanvasElement(canvas()); 7799 result.setHTMLCanvasElement(canvas());
7800 else 7800 else
7801 result.setOffscreenCanvas(offscreenCanvas()); 7801 result.setOffscreenCanvas(offscreenCanvas());
7802 } 7802 }
7803 7803
7804 } // namespace blink 7804 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698