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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // Adds a compressed texture format. | 378 // Adds a compressed texture format. |
379 void addCompressedTextureFormat(GLenum); | 379 void addCompressedTextureFormat(GLenum); |
380 void removeAllCompressedTextureFormats(); | 380 void removeAllCompressedTextureFormats(); |
381 | 381 |
382 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height); | 382 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height); |
383 | 383 |
384 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy); | 384 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy); |
385 | 385 |
386 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuf
fer*); | 386 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuf
fer*); |
387 | 387 |
388 | |
389 | |
390 OwnPtr<blink::WebGraphicsContext3D> m_context; | 388 OwnPtr<blink::WebGraphicsContext3D> m_context; |
391 RefPtr<GraphicsContext3D> m_contextSupport; | 389 RefPtr<GraphicsContext3D> m_contextSupport; |
392 RefPtr<WebGLContextGroup> m_contextGroup; | 390 RefPtr<WebGLContextGroup> m_contextGroup; |
393 | 391 |
394 // Structure for rendering to a DrawingBuffer, instead of directly | 392 // Structure for rendering to a DrawingBuffer, instead of directly |
395 // to the back-buffer of m_context. | 393 // to the back-buffer of m_context. |
396 RefPtr<DrawingBuffer> m_drawingBuffer; | 394 RefPtr<DrawingBuffer> m_drawingBuffer; |
397 | 395 |
398 // Dispatches a context lost event once it is determined that one is needed. | 396 // Dispatches a context lost event once it is determined that one is needed. |
399 // This is used both for synthetic and real context losses. For real ones, i
t's | 397 // This is used both for synthetic and real context losses. For real ones, i
t's |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 // If the vector is empty, return the maximum allowed active context number. | 922 // If the vector is empty, return the maximum allowed active context number. |
925 static size_t oldestContextIndex(); | 923 static size_t oldestContextIndex(); |
926 static IntSize oldestContextSize(); | 924 static IntSize oldestContextSize(); |
927 }; | 925 }; |
928 | 926 |
929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex
t->is3d(), context.is3d()); | 927 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex
t->is3d(), context.is3d()); |
930 | 928 |
931 } // namespace WebCore | 929 } // namespace WebCore |
932 | 930 |
933 #endif | 931 #endif |
OLD | NEW |