| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 GraphicsContext3D* graphicsContext3D() const { return m_context.get(); } | 135 GraphicsContext3D* graphicsContext3D() const { return m_context.get(); } |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 DrawingBuffer(GraphicsContext3D*, const IntSize&, bool multisampleExtensionS
upported, | 138 DrawingBuffer(GraphicsContext3D*, const IntSize&, bool multisampleExtensionS
upported, |
| 139 bool packedDepthStencilExtensionSupported, PreserveDrawingBuff
er, AlphaRequirement); | 139 bool packedDepthStencilExtensionSupported, PreserveDrawingBuff
er, AlphaRequirement); |
| 140 | 140 |
| 141 void initialize(const IntSize&); | 141 void initialize(const IntSize&); |
| 142 | 142 |
| 143 bool checkBufferIntegrity(); |
| 144 |
| 143 PreserveDrawingBuffer m_preserveDrawingBuffer; | 145 PreserveDrawingBuffer m_preserveDrawingBuffer; |
| 144 AlphaRequirement m_alpha; | 146 AlphaRequirement m_alpha; |
| 145 bool m_scissorEnabled; | 147 bool m_scissorEnabled; |
| 146 Platform3DObject m_texture2DBinding; | 148 Platform3DObject m_texture2DBinding; |
| 147 Platform3DObject m_framebufferBinding; | 149 Platform3DObject m_framebufferBinding; |
| 148 GC3Denum m_activeTextureUnit; | 150 GC3Denum m_activeTextureUnit; |
| 149 | 151 |
| 150 RefPtr<GraphicsContext3D> m_context; | 152 RefPtr<GraphicsContext3D> m_context; |
| 151 IntSize m_size; | 153 IntSize m_size; |
| 152 bool m_multisampleExtensionSupported; | 154 bool m_multisampleExtensionSupported; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 175 #endif | 177 #endif |
| 176 | 178 |
| 177 #if PLATFORM(MAC) | 179 #if PLATFORM(MAC) |
| 178 RetainPtr<WebGLLayer> m_platformLayer; | 180 RetainPtr<WebGLLayer> m_platformLayer; |
| 179 #endif | 181 #endif |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace WebCore | 184 } // namespace WebCore |
| 183 | 185 |
| 184 #endif // DrawingBuffer_h | 186 #endif // DrawingBuffer_h |
| OLD | NEW |