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

Unified Diff: webkit/gpu/context_provider_in_process.cc

Issue 12908004: Lazy initialize WGC3DInProcessCommandBufferImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. 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: webkit/gpu/context_provider_in_process.cc
diff --git a/webkit/gpu/context_provider_in_process.cc b/webkit/gpu/context_provider_in_process.cc
index b7a98be2346c84b8eb4a7ee9f51f20f83ce8e209..8fa3fa216500bebb103ac583732e20932cb5aaf5 100644
--- a/webkit/gpu/context_provider_in_process.cc
+++ b/webkit/gpu/context_provider_in_process.cc
@@ -60,9 +60,8 @@ bool ContextProviderInProcess::InitializeOnMainThread() {
attributes.noAutomaticFlushes = true;
context3d_.reset(
- new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl());
- if (!context3d_->Initialize(attributes, NULL))
- context3d_.reset();
+ new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl(
+ attributes));
return context3d_;
}

Powered by Google App Engine
This is Rietveld 408576698