| 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(); | 351 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(SourceDra
wingBuffer); |
| 352 | 352 |
| 353 void removeSharedObject(WebGLSharedObject*); | 353 void removeSharedObject(WebGLSharedObject*); |
| 354 void removeContextObject(WebGLContextObject*); | 354 void removeContextObject(WebGLContextObject*); |
| 355 | 355 |
| 356 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } | 356 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } |
| 357 | 357 |
| 358 // ActiveDOMObject notifications | 358 // ActiveDOMObject notifications |
| 359 virtual bool hasPendingActivity() const override; | 359 virtual bool hasPendingActivity() const override; |
| 360 virtual void stop() override; | 360 virtual void stop() override; |
| 361 | 361 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 391 void setupFlags(); | 391 void setupFlags(); |
| 392 | 392 |
| 393 #if ENABLE(OILPAN) | 393 #if ENABLE(OILPAN) |
| 394 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; | 394 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; |
| 395 #endif | 395 #endif |
| 396 | 396 |
| 397 // CanvasRenderingContext implementation. | 397 // CanvasRenderingContext implementation. |
| 398 virtual bool is3d() const override { return true; } | 398 virtual bool is3d() const override { return true; } |
| 399 virtual bool isAccelerated() const override { return true; } | 399 virtual bool isAccelerated() const override { return true; } |
| 400 virtual void setIsHidden(bool) override; | 400 virtual void setIsHidden(bool) override; |
| 401 virtual void paintRenderingResultsToCanvas(SourceBuffer) override; | 401 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) override; |
| 402 virtual blink::WebLayer* platformLayer() const override; | 402 virtual blink::WebLayer* platformLayer() const override; |
| 403 | 403 |
| 404 void addSharedObject(WebGLSharedObject*); | 404 void addSharedObject(WebGLSharedObject*); |
| 405 void addContextObject(WebGLContextObject*); | 405 void addContextObject(WebGLContextObject*); |
| 406 void detachAndRemoveAllObjects(); | 406 void detachAndRemoveAllObjects(); |
| 407 | 407 |
| 408 void destroyContext(); | 408 void destroyContext(); |
| 409 void markContextChanged(ContentChangeType); | 409 void markContextChanged(ContentChangeType); |
| 410 | 410 |
| 411 // Query if the GL implementation is NPOT strict. | 411 // Query if the GL implementation is NPOT strict. |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 static IntSize oldestContextSize(); | 952 static IntSize oldestContextSize(); |
| 953 }; | 953 }; |
| 954 | 954 |
| 955 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 955 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 956 | 956 |
| 957 } // namespace blink | 957 } // namespace blink |
| 958 | 958 |
| 959 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 959 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 960 | 960 |
| 961 #endif // WebGLRenderingContextBase_h | 961 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |