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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "core/html/canvas/WebGLProgram.h" | 62 #include "core/html/canvas/WebGLProgram.h" |
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/Page.h" | |
73 #include "core/page/Settings.h" | 72 #include "core/page/Settings.h" |
74 #include "core/platform/graphics/Extensions3D.h" | 73 #include "core/platform/graphics/Extensions3D.h" |
75 #include "core/platform/graphics/ImageBuffer.h" | |
76 #include "core/platform/graphics/gpu/DrawingBuffer.h" | 74 #include "core/platform/graphics/gpu/DrawingBuffer.h" |
77 #include "core/rendering/RenderBox.h" | 75 #include "core/rendering/RenderBox.h" |
78 #include "platform/NotImplemented.h" | 76 #include "platform/NotImplemented.h" |
79 #include "platform/geometry/IntSize.h" | 77 #include "platform/geometry/IntSize.h" |
80 | 78 |
81 #include "wtf/OwnPtr.h" | |
82 #include "wtf/PassOwnPtr.h" | 79 #include "wtf/PassOwnPtr.h" |
83 #include "wtf/Uint32Array.h" | 80 #include "wtf/Uint32Array.h" |
84 #include "wtf/text/StringBuilder.h" | 81 #include "wtf/text/StringBuilder.h" |
85 | 82 |
86 namespace WebCore { | 83 namespace WebCore { |
87 | 84 |
88 const double secondsBetweenRestoreAttempts = 1.0; | 85 const double secondsBetweenRestoreAttempts = 1.0; |
89 const int maxGLErrorsAllowedToConsole = 256; | 86 const int maxGLErrorsAllowedToConsole = 256; |
90 const unsigned maxGLActiveContexts = 16; | 87 const unsigned maxGLActiveContexts = 16; |
91 | 88 |
(...skipping 5524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5616 if (m_textureUnits[i].m_texture2DBinding | 5613 if (m_textureUnits[i].m_texture2DBinding |
5617 || m_textureUnits[i].m_textureCubeMapBinding) { | 5614 || m_textureUnits[i].m_textureCubeMapBinding) { |
5618 m_onePlusMaxNonDefaultTextureUnit = i + 1; | 5615 m_onePlusMaxNonDefaultTextureUnit = i + 1; |
5619 return; | 5616 return; |
5620 } | 5617 } |
5621 } | 5618 } |
5622 m_onePlusMaxNonDefaultTextureUnit = 0; | 5619 m_onePlusMaxNonDefaultTextureUnit = 0; |
5623 } | 5620 } |
5624 | 5621 |
5625 } // namespace WebCore | 5622 } // namespace WebCore |
OLD | NEW |