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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 364833004: Oilpan: build fix after r177435 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 size_t candidateID = oldestContextIndex(); 109 size_t candidateID = oldestContextIndex();
110 if (candidateID >= activeContexts().size()) 110 if (candidateID >= activeContexts().size())
111 return; 111 return;
112 112
113 WebGLRenderingContextBase* candidate = activeContexts()[candidateID]; 113 WebGLRenderingContextBase* candidate = activeContexts()[candidateID];
114 114
115 // This context could belong to a dead page and the last JavaScript referenc e has already 115 // This context could belong to a dead page and the last JavaScript referenc e has already
116 // been lost. Garbage collection might be triggered in the middle of this fu nction, for 116 // been lost. Garbage collection might be triggered in the middle of this fu nction, for
117 // example, printWarningToConsole() causes an upcall to JavaScript. 117 // example, printWarningToConsole() causes an upcall to JavaScript.
118 // Must make sure that the context is not deleted until the call stack unwin ds. 118 // Must make sure that the context is not deleted until the call stack unwin ds.
119 RefPtr<WebGLRenderingContextBase> protect(candidate); 119 RefPtrWillBeRawPtr<WebGLRenderingContextBase> protect(candidate);
120 120
121 activeContexts().remove(candidateID); 121 activeContexts().remove(candidateID);
122 122
123 candidate->printWarningToConsole(reason); 123 candidate->printWarningToConsole(reason);
124 InspectorInstrumentation::didFireWebGLWarning(candidate->canvas()); 124 InspectorInstrumentation::didFireWebGLWarning(candidate->canvas());
125 125
126 // This will call deactivateContext once the context has actually been lost. 126 // This will call deactivateContext once the context has actually been lost.
127 candidate->forceLostContext(WebGLRenderingContextBase::SyntheticLostContext) ; 127 candidate->forceLostContext(WebGLRenderingContextBase::SyntheticLostContext) ;
128 } 128 }
129 129
(...skipping 5564 matching lines...) Expand 10 before | Expand all | Expand 10 after
5694 if (m_textureUnits[i].m_texture2DBinding 5694 if (m_textureUnits[i].m_texture2DBinding
5695 || m_textureUnits[i].m_textureCubeMapBinding) { 5695 || m_textureUnits[i].m_textureCubeMapBinding) {
5696 m_onePlusMaxNonDefaultTextureUnit = i + 1; 5696 m_onePlusMaxNonDefaultTextureUnit = i + 1;
5697 return; 5697 return;
5698 } 5698 }
5699 } 5699 }
5700 m_onePlusMaxNonDefaultTextureUnit = 0; 5700 m_onePlusMaxNonDefaultTextureUnit = 0;
5701 } 5701 }
5702 5702
5703 } // namespace WebCore 5703 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698