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 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebGLRenderingContext_h | 26 #ifndef WebGLRenderingContext_h |
27 #define WebGLRenderingContext_h | 27 #define WebGLRenderingContext_h |
28 | 28 |
29 #include "core/dom/ActiveDOMObject.h" | 29 #include "core/dom/ActiveDOMObject.h" |
30 #include "core/html/canvas/CanvasRenderingContext.h" | 30 #include "core/html/canvas/CanvasRenderingContext.h" |
31 #include "core/html/canvas/WebGLGetInfo.h" | 31 #include "core/html/canvas/WebGLGetInfo.h" |
32 #include "core/page/Page.h" | 32 #include "core/page/Page.h" |
33 #include "core/platform/graphics/GraphicsContext3D.h" | |
34 #include "core/platform/graphics/ImageBuffer.h" | |
35 #include "platform/Timer.h" | 33 #include "platform/Timer.h" |
| 34 #include "platform/graphics/GraphicsContext3D.h" |
| 35 #include "platform/graphics/ImageBuffer.h" |
36 | 36 |
37 #include "wtf/Float32Array.h" | 37 #include "wtf/Float32Array.h" |
38 #include "wtf/Int32Array.h" | 38 #include "wtf/Int32Array.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace blink { class WebLayer; } | 42 namespace blink { class WebLayer; } |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
(...skipping 878 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 |