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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 friend class WebGLDrawBuffers; | 349 friend class WebGLDrawBuffers; |
350 friend class WebGLFramebuffer; | 350 friend class WebGLFramebuffer; |
351 friend class WebGLObject; | 351 friend class WebGLObject; |
352 friend class OESVertexArrayObject; | 352 friend class OESVertexArrayObject; |
353 friend class WebGLDebugShaders; | 353 friend class WebGLDebugShaders; |
354 friend class WebGLCompressedTextureATC; | 354 friend class WebGLCompressedTextureATC; |
355 friend class WebGLCompressedTexturePVRTC; | 355 friend class WebGLCompressedTexturePVRTC; |
356 friend class WebGLCompressedTextureS3TC; | 356 friend class WebGLCompressedTextureS3TC; |
357 friend class WebGLRenderingContextErrorMessageCallback; | 357 friend class WebGLRenderingContextErrorMessageCallback; |
358 friend class WebGLVertexArrayObjectOES; | 358 friend class WebGLVertexArrayObjectOES; |
| 359 friend class ScopedTexture2DRestorer; |
359 | 360 |
360 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsC
ontext3D>, WebGLContextAttributes*); | 361 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsC
ontext3D>, WebGLContextAttributes*); |
361 void initializeNewContext(); | 362 void initializeNewContext(); |
362 void setupFlags(); | 363 void setupFlags(); |
363 | 364 |
364 void addSharedObject(WebGLSharedObject*); | 365 void addSharedObject(WebGLSharedObject*); |
365 void addContextObject(WebGLContextObject*); | 366 void addContextObject(WebGLContextObject*); |
366 void detachAndRemoveAllObjects(); | 367 void detachAndRemoveAllObjects(); |
367 | 368 |
368 void destroyContext(); | 369 void destroyContext(); |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 // If the vector is empty, return the maximum allowed active context number. | 917 // If the vector is empty, return the maximum allowed active context number. |
917 static size_t oldestContextIndex(); | 918 static size_t oldestContextIndex(); |
918 static IntSize oldestContextSize(); | 919 static IntSize oldestContextSize(); |
919 }; | 920 }; |
920 | 921 |
921 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 922 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
922 | 923 |
923 } // namespace WebCore | 924 } // namespace WebCore |
924 | 925 |
925 #endif // WebGLRenderingContextBase_h | 926 #endif // WebGLRenderingContextBase_h |
OLD | NEW |