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