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(SourceBuf
fer); |
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 590 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 |