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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "core/html/canvas/WebGLRenderbuffer.h" | 63 #include "core/html/canvas/WebGLRenderbuffer.h" |
64 #include "core/html/canvas/WebGLShader.h" | 64 #include "core/html/canvas/WebGLShader.h" |
65 #include "core/html/canvas/WebGLShaderPrecisionFormat.h" | 65 #include "core/html/canvas/WebGLShaderPrecisionFormat.h" |
66 #include "core/html/canvas/WebGLTexture.h" | 66 #include "core/html/canvas/WebGLTexture.h" |
67 #include "core/html/canvas/WebGLUniformLocation.h" | 67 #include "core/html/canvas/WebGLUniformLocation.h" |
68 #include "core/inspector/InspectorInstrumentation.h" | 68 #include "core/inspector/InspectorInstrumentation.h" |
69 #include "core/loader/FrameLoader.h" | 69 #include "core/loader/FrameLoader.h" |
70 #include "core/loader/FrameLoaderClient.h" | 70 #include "core/loader/FrameLoaderClient.h" |
71 #include "core/frame/Frame.h" | 71 #include "core/frame/Frame.h" |
72 #include "core/page/Settings.h" | 72 #include "core/page/Settings.h" |
73 #include "core/platform/graphics/Extensions3D.h" | |
74 #include "core/platform/graphics/gpu/DrawingBuffer.h" | |
75 #include "core/rendering/RenderBox.h" | 73 #include "core/rendering/RenderBox.h" |
76 #include "platform/NotImplemented.h" | 74 #include "platform/NotImplemented.h" |
77 #include "platform/geometry/IntSize.h" | 75 #include "platform/geometry/IntSize.h" |
| 76 #include "platform/graphics/Extensions3D.h" |
| 77 #include "platform/graphics/gpu/DrawingBuffer.h" |
78 | 78 |
79 #include "wtf/PassOwnPtr.h" | 79 #include "wtf/PassOwnPtr.h" |
80 #include "wtf/Uint32Array.h" | 80 #include "wtf/Uint32Array.h" |
81 #include "wtf/text/StringBuilder.h" | 81 #include "wtf/text/StringBuilder.h" |
82 | 82 |
83 namespace WebCore { | 83 namespace WebCore { |
84 | 84 |
85 const double secondsBetweenRestoreAttempts = 1.0; | 85 const double secondsBetweenRestoreAttempts = 1.0; |
86 const int maxGLErrorsAllowedToConsole = 256; | 86 const int maxGLErrorsAllowedToConsole = 256; |
87 const unsigned maxGLActiveContexts = 16; | 87 const unsigned maxGLActiveContexts = 16; |
(...skipping 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5619 if (m_textureUnits[i].m_texture2DBinding | 5619 if (m_textureUnits[i].m_texture2DBinding |
5620 || m_textureUnits[i].m_textureCubeMapBinding) { | 5620 || m_textureUnits[i].m_textureCubeMapBinding) { |
5621 m_onePlusMaxNonDefaultTextureUnit = i + 1; | 5621 m_onePlusMaxNonDefaultTextureUnit = i + 1; |
5622 return; | 5622 return; |
5623 } | 5623 } |
5624 } | 5624 } |
5625 m_onePlusMaxNonDefaultTextureUnit = 0; | 5625 m_onePlusMaxNonDefaultTextureUnit = 0; |
5626 } | 5626 } |
5627 | 5627 |
5628 } // namespace WebCore | 5628 } // namespace WebCore |
OLD | NEW |