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

Unified Diff: trunk/src/webkit/support/test_webkit_platform_support.cc

Issue 12915008: Revert 189820 "Lazy initialize WGC3DInProcessCommandBufferImpl". Causing checkfailures. (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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: trunk/src/webkit/support/test_webkit_platform_support.cc
===================================================================
--- trunk/src/webkit/support/test_webkit_platform_support.cc (revision 189974)
+++ trunk/src/webkit/support/test_webkit_platform_support.cc (working copy)
@@ -374,7 +374,11 @@
TestWebKitPlatformSupport::createOffscreenGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes) {
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
- return new WebGraphicsContext3DInProcessCommandBufferImpl(attributes);
+ scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context(
+ new WebGraphicsContext3DInProcessCommandBufferImpl());
+ if (!context->Initialize(attributes, NULL))
+ return NULL;
+ return context.release();
}
WebKit::WebGraphicsContext3D*
« no previous file with comments | « trunk/src/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | trunk/src/webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698