OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef Extensions3D_h | 26 #ifndef Extensions3D_h |
27 #define Extensions3D_h | 27 #define Extensions3D_h |
28 | 28 |
29 #include "core/platform/graphics/GraphicsTypes3D.h" | 29 #include "core/platform/graphics/GraphicsTypes3D.h" |
30 | 30 |
31 #include <wtf/text/WTFString.h> | 31 #include <wtf/text/WTFString.h> |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class GraphicsContext3DPrivate; | 35 class GraphicsContext3D; |
36 class ImageBuffer; | 36 class ImageBuffer; |
37 | 37 |
38 // The supported extensions are defined below. | 38 // The supported extensions are defined below. |
39 // | 39 // |
40 // Calling any extension function not supported by the current context | 40 // Calling any extension function not supported by the current context |
41 // must be a no-op; in particular, it may not have side effects. In | 41 // must be a no-op; in particular, it may not have side effects. In |
42 // this situation, if the function has a return value, 0 is returned. | 42 // this situation, if the function has a return value, 0 is returned. |
43 class Extensions3D { | 43 class Extensions3D { |
44 public: | 44 public: |
45 ~Extensions3D(); | 45 ~Extensions3D(); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 void endQueryEXT(GC3Denum); | 322 void endQueryEXT(GC3Denum); |
323 void getQueryivEXT(GC3Denum, GC3Denum, GC3Dint*); | 323 void getQueryivEXT(GC3Denum, GC3Denum, GC3Dint*); |
324 void getQueryObjectuivEXT(Platform3DObject, GC3Denum, GC3Duint*); | 324 void getQueryObjectuivEXT(Platform3DObject, GC3Denum, GC3Duint*); |
325 | 325 |
326 // GL_CHROMIUM_shallow_flush | 326 // GL_CHROMIUM_shallow_flush |
327 void shallowFlushCHROMIUM(); | 327 void shallowFlushCHROMIUM(); |
328 | 328 |
329 private: | 329 private: |
330 // Instances of this class are strictly owned by the GraphicsContext3D imple
mentation and do not | 330 // Instances of this class are strictly owned by the GraphicsContext3D imple
mentation and do not |
331 // need to be instantiated by any other code. | 331 // need to be instantiated by any other code. |
332 friend class GraphicsContext3DPrivate; | 332 friend class GraphicsContext3D; |
333 explicit Extensions3D(GraphicsContext3DPrivate*); | 333 explicit Extensions3D(GraphicsContext3D*); |
334 | 334 |
335 // Weak pointer back to GraphicsContext3DPrivate | 335 // Weak pointer back to GraphicsContext3D. |
336 GraphicsContext3DPrivate* m_private; | 336 GraphicsContext3D* m_context; |
337 }; | 337 }; |
338 | 338 |
339 } // namespace WebCore | 339 } // namespace WebCore |
340 | 340 |
341 #endif // Extensions3D_h | 341 #endif // Extensions3D_h |
OLD | NEW |