| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 void forceRestoreContext(); | 341 void forceRestoreContext(); |
| 342 void loseContextImpl(LostContextMode, AutoRecoveryMethod); | 342 void loseContextImpl(LostContextMode, AutoRecoveryMethod); |
| 343 | 343 |
| 344 blink::WebGraphicsContext3D* webContext() const { return drawingBuffer()->co
ntext(); } | 344 blink::WebGraphicsContext3D* webContext() const { return drawingBuffer()->co
ntext(); } |
| 345 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } | 345 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } |
| 346 Extensions3DUtil* extensionsUtil(); | 346 Extensions3DUtil* extensionsUtil(); |
| 347 | 347 |
| 348 void reshape(int width, int height); | 348 void reshape(int width, int height); |
| 349 | 349 |
| 350 void markLayerComposited(); | 350 void markLayerComposited(); |
| 351 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(); | |
| 352 | 351 |
| 353 void removeSharedObject(WebGLSharedObject*); | 352 void removeSharedObject(WebGLSharedObject*); |
| 354 void removeContextObject(WebGLContextObject*); | 353 void removeContextObject(WebGLContextObject*); |
| 355 | 354 |
| 356 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } | 355 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } |
| 357 | 356 |
| 358 // ActiveDOMObject notifications | 357 // ActiveDOMObject notifications |
| 359 virtual bool hasPendingActivity() const override; | 358 virtual bool hasPendingActivity() const override; |
| 360 virtual void stop() override; | 359 virtual void stop() override; |
| 361 | 360 |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 static IntSize oldestContextSize(); | 951 static IntSize oldestContextSize(); |
| 953 }; | 952 }; |
| 954 | 953 |
| 955 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 954 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 956 | 955 |
| 957 } // namespace blink | 956 } // namespace blink |
| 958 | 957 |
| 959 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 958 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 960 | 959 |
| 961 #endif // WebGLRenderingContextBase_h | 960 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |