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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 namespace WebCore { 31 namespace WebCore {
32 32
33 GraphicsContext3D* SharedGraphicsContext3D::create(HostWindow* window) 33 GraphicsContext3D* SharedGraphicsContext3D::create(HostWindow* window)
34 { 34 {
35 GraphicsContext3D::Attributes attributes; 35 GraphicsContext3D::Attributes attributes;
36 attributes.depth = false; 36 attributes.depth = false;
37 attributes.stencil = true; 37 attributes.stencil = true;
38 attributes.antialias = false; 38 attributes.antialias = false;
39 attributes.canRecoverFromContextLoss = false; // Canvas contexts can not han dle lost contexts. 39 attributes.canRecoverFromContextLoss = false; // Canvas contexts can not han dle lost contexts.
40 attributes.shareResources = true; 40 attributes.shareResources = true;
41 static RefPtr<GraphicsContext3D> context = GraphicsContext3D::create(attribu tes, window); 41 static GraphicsContext3D* context = GraphicsContext3D::create(attributes, wi ndow).leakRef();
42 return context.get(); 42 return context;
43 } 43 }
44 44
45 } 45 }
46 46
OLDNEW
« 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