| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 // Check if each enabled vertex attribute is bound to a buffer. | 367 // Check if each enabled vertex attribute is bound to a buffer. |
| 368 bool validateRenderingState(); | 368 bool validateRenderingState(); |
| 369 | 369 |
| 370 bool validateWebGLObject(const char*, WebGLObject*); | 370 bool validateWebGLObject(const char*, WebGLObject*); |
| 371 | 371 |
| 372 // Adds a compressed texture format. | 372 // Adds a compressed texture format. |
| 373 void addCompressedTextureFormat(GC3Denum); | 373 void addCompressedTextureFormat(GC3Denum); |
| 374 void removeAllCompressedTextureFormats(); | 374 void removeAllCompressedTextureFormats(); |
| 375 | 375 |
| 376 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height, int dev
iceScaleFactor); | 376 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height); |
| 377 | 377 |
| 378 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy); | 378 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy); |
| 379 | 379 |
| 380 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GC3Denum target, WebGLRenderb
uffer*); | 380 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GC3Denum target, WebGLRenderb
uffer*); |
| 381 | 381 |
| 382 RefPtr<GraphicsContext3D> m_context; | 382 RefPtr<GraphicsContext3D> m_context; |
| 383 RefPtr<WebGLContextGroup> m_contextGroup; | 383 RefPtr<WebGLContextGroup> m_contextGroup; |
| 384 | 384 |
| 385 // Structure for rendering to a DrawingBuffer, instead of directly | 385 // Structure for rendering to a DrawingBuffer, instead of directly |
| 386 // to the back-buffer of m_context. | 386 // to the back-buffer of m_context. |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 // If the vector is empty, return the maximum allowed active context number. | 924 // If the vector is empty, return the maximum allowed active context number. |
| 925 static size_t oldestContextIndex(); | 925 static size_t oldestContextIndex(); |
| 926 static IntSize oldestContextSize(); | 926 static IntSize oldestContextSize(); |
| 927 }; | 927 }; |
| 928 | 928 |
| 929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex
t->is3d(), context.is3d()); | 929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex
t->is3d(), context.is3d()); |
| 930 | 930 |
| 931 } // namespace WebCore | 931 } // namespace WebCore |
| 932 | 932 |
| 933 #endif | 933 #endif |
| OLD | NEW |