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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 412 |
413 DECLARE_TRACE(); | 413 DECLARE_TRACE(); |
414 }; | 414 }; |
415 | 415 |
416 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; | 416 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; |
417 void setFilterQuality(SkFilterQuality) override; | 417 void setFilterQuality(SkFilterQuality) override; |
418 bool isWebGL2OrHigher() { return version() >= 2; } | 418 bool isWebGL2OrHigher() { return version() >= 2; } |
419 | 419 |
420 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; | 420 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; |
421 | 421 |
| 422 void commit(ExceptionState&); |
| 423 |
422 protected: | 424 protected: |
423 friend class EXTDisjointTimerQuery; | 425 friend class EXTDisjointTimerQuery; |
424 friend class WebGLDrawBuffers; | 426 friend class WebGLDrawBuffers; |
425 friend class WebGLFramebuffer; | 427 friend class WebGLFramebuffer; |
426 friend class WebGLObject; | 428 friend class WebGLObject; |
427 friend class WebGLContextObject; | 429 friend class WebGLContextObject; |
428 friend class OESVertexArrayObject; | 430 friend class OESVertexArrayObject; |
429 friend class WebGLDebugShaders; | 431 friend class WebGLDebugShaders; |
430 friend class WebGLCompressedTextureASTC; | 432 friend class WebGLCompressedTextureASTC; |
431 friend class WebGLCompressedTextureATC; | 433 friend class WebGLCompressedTextureATC; |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 bool isPaintable() const final { return drawingBuffer(); } | 1106 bool isPaintable() const final { return drawingBuffer(); } |
1105 }; | 1107 }; |
1106 | 1108 |
1107 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1109 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
1108 | 1110 |
1109 } // namespace blink | 1111 } // namespace blink |
1110 | 1112 |
1111 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1113 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
1112 | 1114 |
1113 #endif // WebGLRenderingContextBase_h | 1115 #endif // WebGLRenderingContextBase_h |
OLD | NEW |