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