OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "wtf/Uint8Array.h" | 41 #include "wtf/Uint8Array.h" |
42 #include "wtf/text/WTFString.h" | 42 #include "wtf/text/WTFString.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 // A tagged union representing the result of get queries like | 46 // A tagged union representing the result of get queries like |
47 // getParameter (encompassing getBooleanv, getIntegerv, getFloatv) and | 47 // getParameter (encompassing getBooleanv, getIntegerv, getFloatv) and |
48 // similar variants. For reference counted types, increments and | 48 // similar variants. For reference counted types, increments and |
49 // decrements the reference count of the target object. | 49 // decrements the reference count of the target object. |
50 | 50 |
51 class WebGLGetInfo FINAL { | 51 class WebGLGetInfo final { |
52 STACK_ALLOCATED(); | 52 STACK_ALLOCATED(); |
53 public: | 53 public: |
54 enum Type { | 54 enum Type { |
55 kTypeBool, | 55 kTypeBool, |
56 kTypeBoolArray, | 56 kTypeBoolArray, |
57 kTypeFloat, | 57 kTypeFloat, |
58 kTypeInt, | 58 kTypeInt, |
59 kTypeNull, | 59 kTypeNull, |
60 kTypeString, | 60 kTypeString, |
61 kTypeUnsignedInt, | 61 kTypeUnsignedInt, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 RefPtrWillBeMember<WebGLRenderbuffer> m_webglRenderbuffer; | 132 RefPtrWillBeMember<WebGLRenderbuffer> m_webglRenderbuffer; |
133 RefPtrWillBeMember<WebGLTexture> m_webglTexture; | 133 RefPtrWillBeMember<WebGLTexture> m_webglTexture; |
134 RefPtr<Uint8Array> m_webglUnsignedByteArray; | 134 RefPtr<Uint8Array> m_webglUnsignedByteArray; |
135 RefPtr<Uint32Array> m_webglUnsignedIntArray; | 135 RefPtr<Uint32Array> m_webglUnsignedIntArray; |
136 RefPtrWillBeMember<WebGLVertexArrayObjectOES> m_webglVertexArrayObject; | 136 RefPtrWillBeMember<WebGLVertexArrayObjectOES> m_webglVertexArrayObject; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace blink | 139 } // namespace blink |
140 | 140 |
141 #endif // WebGLGetInfo_h | 141 #endif // WebGLGetInfo_h |
OLD | NEW |