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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas
k, DrawingBuffer*); | 123 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas
k, DrawingBuffer*); |
124 ~ScopedRGBEmulationColorMask(); | 124 ~ScopedRGBEmulationColorMask(); |
125 | 125 |
126 private: | 126 private: |
127 gpu::gles2::GLES2Interface* m_contextGL; | 127 gpu::gles2::GLES2Interface* m_contextGL; |
128 GLboolean m_colorMask[4]; | 128 GLboolean m_colorMask[4]; |
129 const bool m_requiresEmulation; | 129 const bool m_requiresEmulation; |
130 }; | 130 }; |
131 | 131 |
132 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { | 132 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { |
| 133 WTF_MAKE_NONCOPYABLE(WebGLRenderingContextBase); |
133 public: | 134 public: |
134 ~WebGLRenderingContextBase() override; | 135 ~WebGLRenderingContextBase() override; |
135 | 136 |
136 virtual String contextName() const = 0; | 137 virtual String contextName() const = 0; |
137 virtual void registerContextExtensions() = 0; | 138 virtual void registerContextExtensions() = 0; |
138 | 139 |
139 virtual void initializeNewContext(); | 140 virtual void initializeNewContext(); |
140 | 141 |
141 static unsigned getWebGLVersion(const CanvasRenderingContext*); | 142 static unsigned getWebGLVersion(const CanvasRenderingContext*); |
142 | 143 |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 bool isPaintable() const final { return drawingBuffer(); } | 1123 bool isPaintable() const final { return drawingBuffer(); } |
1123 }; | 1124 }; |
1124 | 1125 |
1125 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1126 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
1126 | 1127 |
1127 } // namespace blink | 1128 } // namespace blink |
1128 | 1129 |
1129 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1130 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
1130 | 1131 |
1131 #endif // WebGLRenderingContextBase_h | 1132 #endif // WebGLRenderingContextBase_h |
OLD | NEW |