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

Unified Diff: Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp

Issue 8020006: Merge 95668 - [chromium] SharedGraphicsContext3D's context should not be destroyed during atexit (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp
===================================================================
--- Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp (revision 95829)
+++ Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp (working copy)
@@ -38,8 +38,8 @@
attributes.antialias = false;
attributes.canRecoverFromContextLoss = false; // Canvas contexts can not handle lost contexts.
attributes.shareResources = true;
- static RefPtr<GraphicsContext3D> context = GraphicsContext3D::create(attributes, window);
- return context.get();
+ static GraphicsContext3D* context = GraphicsContext3D::create(attributes, window).leakRef();
+ return context;
}
}
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698