| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 void setupFlags(); | 407 void setupFlags(); |
| 408 | 408 |
| 409 #if ENABLE(OILPAN) | 409 #if ENABLE(OILPAN) |
| 410 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; | 410 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; |
| 411 #endif | 411 #endif |
| 412 | 412 |
| 413 // CanvasRenderingContext implementation. | 413 // CanvasRenderingContext implementation. |
| 414 virtual bool is3d() const override { return true; } | 414 virtual bool is3d() const override { return true; } |
| 415 virtual bool isAccelerated() const override { return true; } | 415 virtual bool isAccelerated() const override { return true; } |
| 416 virtual void setIsHidden(bool) override; | 416 virtual void setIsHidden(bool) override; |
| 417 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) override; | 417 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override; |
| 418 virtual blink::WebLayer* platformLayer() const override; | 418 virtual blink::WebLayer* platformLayer() const override; |
| 419 | 419 |
| 420 void addSharedObject(WebGLSharedObject*); | 420 void addSharedObject(WebGLSharedObject*); |
| 421 void addContextObject(WebGLContextObject*); | 421 void addContextObject(WebGLContextObject*); |
| 422 void detachAndRemoveAllObjects(); | 422 void detachAndRemoveAllObjects(); |
| 423 | 423 |
| 424 void destroyContext(); | 424 void destroyContext(); |
| 425 void markContextChanged(ContentChangeType); | 425 void markContextChanged(ContentChangeType); |
| 426 | 426 |
| 427 // Query if the GL implementation is NPOT strict. | 427 // Query if the GL implementation is NPOT strict. |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 static IntSize oldestContextSize(); | 980 static IntSize oldestContextSize(); |
| 981 }; | 981 }; |
| 982 | 982 |
| 983 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 983 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 984 | 984 |
| 985 } // namespace blink | 985 } // namespace blink |
| 986 | 986 |
| 987 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 987 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 988 | 988 |
| 989 #endif // WebGLRenderingContextBase_h | 989 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |