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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 friend class WebGLCompressedTextureS3TCsRGB; | 439 friend class WebGLCompressedTextureS3TCsRGB; |
440 friend class WebGLRenderingContextErrorMessageCallback; | 440 friend class WebGLRenderingContextErrorMessageCallback; |
441 friend class WebGLVertexArrayObjectBase; | 441 friend class WebGLVertexArrayObjectBase; |
442 friend class ScopedTexture2DRestorer; | 442 friend class ScopedTexture2DRestorer; |
443 friend class ScopedFramebufferRestorer; | 443 friend class ScopedFramebufferRestorer; |
444 // To allow V8WebGL[2]RenderingContext to call visitChildDOMWrappers. | 444 // To allow V8WebGL[2]RenderingContext to call visitChildDOMWrappers. |
445 friend class V8WebGLRenderingContext; | 445 friend class V8WebGLRenderingContext; |
446 | 446 |
447 WebGLRenderingContextBase(HTMLCanvasElement*, std::unique_ptr<WebGraphicsCon
text3DProvider>, const CanvasContextCreationAttributes&, unsigned); | 447 WebGLRenderingContextBase(HTMLCanvasElement*, std::unique_ptr<WebGraphicsCon
text3DProvider>, const CanvasContextCreationAttributes&, unsigned); |
448 WebGLRenderingContextBase(OffscreenCanvas*, std::unique_ptr<WebGraphicsConte
xt3DProvider>, const CanvasContextCreationAttributes&, unsigned); | 448 WebGLRenderingContextBase(OffscreenCanvas*, std::unique_ptr<WebGraphicsConte
xt3DProvider>, const CanvasContextCreationAttributes&, unsigned); |
449 PassRefPtr<DrawingBuffer> createDrawingBuffer(std::unique_ptr<WebGraphicsCon
text3DProvider>); | 449 PassRefPtr<DrawingBuffer> createDrawingBuffer(std::unique_ptr<WebGraphicsCon
text3DProvider>, DrawingBuffer::ChromiumImageUsage); |
450 void setupFlags(); | 450 void setupFlags(); |
451 | 451 |
452 // CanvasRenderingContext implementation. | 452 // CanvasRenderingContext implementation. |
453 bool is3d() const override { return true; } | 453 bool is3d() const override { return true; } |
454 bool isAccelerated() const override { return true; } | 454 bool isAccelerated() const override { return true; } |
455 void setIsHidden(bool) override; | 455 void setIsHidden(bool) override; |
456 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override; | 456 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override; |
457 WebLayer* platformLayer() const override; | 457 WebLayer* platformLayer() const override; |
458 void stop() override; | 458 void stop() override; |
459 | 459 |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 bool isPaintable() const final { return drawingBuffer(); } | 1108 bool isPaintable() const final { return drawingBuffer(); } |
1109 }; | 1109 }; |
1110 | 1110 |
1111 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1111 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
1112 | 1112 |
1113 } // namespace blink | 1113 } // namespace blink |
1114 | 1114 |
1115 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1115 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
1116 | 1116 |
1117 #endif // WebGLRenderingContextBase_h | 1117 #endif // WebGLRenderingContextBase_h |
OLD | NEW |