| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 blink::WebGraphicsContext3D* webGraphicsContext3D() const { return m_context
.get(); } | 327 blink::WebGraphicsContext3D* webGraphicsContext3D() const { return m_context
.get(); } |
| 328 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } | 328 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } |
| 329 virtual blink::WebLayer* platformLayer() const OVERRIDE; | 329 virtual blink::WebLayer* platformLayer() const OVERRIDE; |
| 330 Extensions3DUtil* extensionsUtil(); | 330 Extensions3DUtil* extensionsUtil(); |
| 331 | 331 |
| 332 void reshape(int width, int height); | 332 void reshape(int width, int height); |
| 333 | 333 |
| 334 void markLayerComposited(); | 334 void markLayerComposited(); |
| 335 virtual void paintRenderingResultsToCanvas() OVERRIDE; | 335 virtual void paintRenderingResultsToCanvas() OVERRIDE; |
| 336 PassRefPtr<ImageData> paintRenderingResultsToImageData(); | 336 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(); |
| 337 | 337 |
| 338 void removeSharedObject(WebGLSharedObject*); | 338 void removeSharedObject(WebGLSharedObject*); |
| 339 void removeContextObject(WebGLContextObject*); | 339 void removeContextObject(WebGLContextObject*); |
| 340 | 340 |
| 341 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } | 341 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } |
| 342 | 342 |
| 343 // ActiveDOMObject notifications | 343 // ActiveDOMObject notifications |
| 344 virtual bool hasPendingActivity() const OVERRIDE; | 344 virtual bool hasPendingActivity() const OVERRIDE; |
| 345 virtual void stop() OVERRIDE; | 345 virtual void stop() OVERRIDE; |
| 346 | 346 |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 // If the vector is empty, return the maximum allowed active context number. | 915 // If the vector is empty, return the maximum allowed active context number. |
| 916 static size_t oldestContextIndex(); | 916 static size_t oldestContextIndex(); |
| 917 static IntSize oldestContextSize(); | 917 static IntSize oldestContextSize(); |
| 918 }; | 918 }; |
| 919 | 919 |
| 920 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 920 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 921 | 921 |
| 922 } // namespace WebCore | 922 } // namespace WebCore |
| 923 | 923 |
| 924 #endif // WebGLRenderingContextBase_h | 924 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |