OLD | NEW |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 #include "wtf/OwnPtr.h" | 81 #include "wtf/OwnPtr.h" |
82 #include "wtf/PassOwnPtr.h" | 82 #include "wtf/PassOwnPtr.h" |
83 #include "wtf/Uint32Array.h" | 83 #include "wtf/Uint32Array.h" |
84 #include "wtf/text/StringBuilder.h" | 84 #include "wtf/text/StringBuilder.h" |
85 | 85 |
86 namespace WebCore { | 86 namespace WebCore { |
87 | 87 |
88 const double secondsBetweenRestoreAttempts = 1.0; | 88 const double secondsBetweenRestoreAttempts = 1.0; |
89 const int maxGLErrorsAllowedToConsole = 256; | 89 const int maxGLErrorsAllowedToConsole = 256; |
90 const int maxGLActiveContexts = 16; | 90 const unsigned maxGLActiveContexts = 16; |
91 | 91 |
92 Vector<WebGLRenderingContext*>& WebGLRenderingContext::activeContexts() | 92 Vector<WebGLRenderingContext*>& WebGLRenderingContext::activeContexts() |
93 { | 93 { |
94 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, activeContexts, ()); | 94 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, activeContexts, ()); |
95 return activeContexts; | 95 return activeContexts; |
96 } | 96 } |
97 | 97 |
98 Vector<WebGLRenderingContext*>& WebGLRenderingContext::forciblyEvictedContexts() | 98 Vector<WebGLRenderingContext*>& WebGLRenderingContext::forciblyEvictedContexts() |
99 { | 99 { |
100 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, forciblyEvictedContexts,
()); | 100 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, forciblyEvictedContexts,
()); |
(...skipping 5514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5615 if (m_textureUnits[i].m_texture2DBinding | 5615 if (m_textureUnits[i].m_texture2DBinding |
5616 || m_textureUnits[i].m_textureCubeMapBinding) { | 5616 || m_textureUnits[i].m_textureCubeMapBinding) { |
5617 m_onePlusMaxNonDefaultTextureUnit = i + 1; | 5617 m_onePlusMaxNonDefaultTextureUnit = i + 1; |
5618 return; | 5618 return; |
5619 } | 5619 } |
5620 } | 5620 } |
5621 m_onePlusMaxNonDefaultTextureUnit = 0; | 5621 m_onePlusMaxNonDefaultTextureUnit = 0; |
5622 } | 5622 } |
5623 | 5623 |
5624 } // namespace WebCore | 5624 } // namespace WebCore |
OLD | NEW |