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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 unsigned long m_onePlusMaxNonDefaultTextureUnit; | 535 unsigned long m_onePlusMaxNonDefaultTextureUnit; |
536 | 536 |
537 OwnPtr<Extensions3DUtil> m_extensionsUtil; | 537 OwnPtr<Extensions3DUtil> m_extensionsUtil; |
538 | 538 |
539 bool m_savingImage; | 539 bool m_savingImage; |
540 | 540 |
541 enum ExtensionFlags { | 541 enum ExtensionFlags { |
542 ApprovedExtension = 0x00, | 542 ApprovedExtension = 0x00, |
543 // Extension that is behind the draft extensions runtime flag: | 543 // Extension that is behind the draft extensions runtime flag: |
544 DraftExtension = 0x01, | 544 DraftExtension = 0x01, |
545 // Extension that is still in draft state, but has been selectively enab
led by default under a prefix. Do not use | |
546 // this for enabling new draft extensions; use the DraftExtension flag i
nstead, and do not use vendor prefixes: | |
547 EnabledDraftExtension = 0x04, | |
548 }; | 545 }; |
549 | 546 |
550 class ExtensionTracker { | 547 class ExtensionTracker { |
551 public: | 548 public: |
552 ExtensionTracker(ExtensionFlags flags, const char* const* prefixes) | 549 ExtensionTracker(ExtensionFlags flags, const char* const* prefixes) |
553 : m_draft(flags & DraftExtension) | 550 : m_draft(flags & DraftExtension) |
554 , m_prefixes(prefixes) | 551 , m_prefixes(prefixes) |
555 { | 552 { |
556 } | 553 } |
557 | 554 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 // If the vector is empty, return the maximum allowed active context number. | 902 // If the vector is empty, return the maximum allowed active context number. |
906 static size_t oldestContextIndex(); | 903 static size_t oldestContextIndex(); |
907 static IntSize oldestContextSize(); | 904 static IntSize oldestContextSize(); |
908 }; | 905 }; |
909 | 906 |
910 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 907 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
911 | 908 |
912 } // namespace WebCore | 909 } // namespace WebCore |
913 | 910 |
914 #endif // WebGLRenderingContextBase_h | 911 #endif // WebGLRenderingContextBase_h |
OLD | NEW |