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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include "WebGLShaderPrecisionFormat.h" | 74 #include "WebGLShaderPrecisionFormat.h" |
75 #include "WebGLTexture.h" | 75 #include "WebGLTexture.h" |
76 #include "WebGLUniformLocation.h" | 76 #include "WebGLUniformLocation.h" |
77 | 77 |
78 #include <wtf/OwnArrayPtr.h> | 78 #include <wtf/OwnArrayPtr.h> |
79 #include <wtf/PassOwnArrayPtr.h> | 79 #include <wtf/PassOwnArrayPtr.h> |
80 #include <wtf/Uint16Array.h> | 80 #include <wtf/Uint16Array.h> |
81 #include <wtf/Uint32Array.h> | 81 #include <wtf/Uint32Array.h> |
82 #include <wtf/text/StringBuilder.h> | 82 #include <wtf/text/StringBuilder.h> |
83 | 83 |
84 #if PLATFORM(QT) | |
85 #undef emit | |
86 #endif | |
87 | |
88 namespace WebCore { | 84 namespace WebCore { |
89 | 85 |
90 const double secondsBetweenRestoreAttempts = 1.0; | 86 const double secondsBetweenRestoreAttempts = 1.0; |
91 const int maxGLErrorsAllowedToConsole = 256; | 87 const int maxGLErrorsAllowedToConsole = 256; |
92 | 88 |
93 namespace { | 89 namespace { |
94 | 90 |
95 class ScopedDrawingBufferBinder { | 91 class ScopedDrawingBufferBinder { |
96 public: | 92 public: |
97 ScopedDrawingBufferBinder(DrawingBuffer* drawingBuffer, WebGLFramebuffer
* framebufferBinding) | 93 ScopedDrawingBufferBinder(DrawingBuffer* drawingBuffer, WebGLFramebuffer
* framebufferBinding) |
(...skipping 5967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6065 if (!m_drawBuffersWebGLRequirementsChecked) { | 6061 if (!m_drawBuffersWebGLRequirementsChecked) { |
6066 m_drawBuffersWebGLRequirementsChecked = true; | 6062 m_drawBuffersWebGLRequirementsChecked = true; |
6067 m_drawBuffersSupported = EXTDrawBuffers::supported(this); | 6063 m_drawBuffersSupported = EXTDrawBuffers::supported(this); |
6068 } | 6064 } |
6069 return m_drawBuffersSupported; | 6065 return m_drawBuffersSupported; |
6070 } | 6066 } |
6071 | 6067 |
6072 } // namespace WebCore | 6068 } // namespace WebCore |
6073 | 6069 |
6074 #endif // ENABLE(WEBGL) | 6070 #endif // ENABLE(WEBGL) |
OLD | NEW |