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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 friend class WebGLContextObject; | 396 friend class WebGLContextObject; |
397 friend class OESVertexArrayObject; | 397 friend class OESVertexArrayObject; |
398 friend class WebGLDebugShaders; | 398 friend class WebGLDebugShaders; |
399 friend class WebGLCompressedTextureATC; | 399 friend class WebGLCompressedTextureATC; |
400 friend class WebGLCompressedTextureETC1; | 400 friend class WebGLCompressedTextureETC1; |
401 friend class WebGLCompressedTexturePVRTC; | 401 friend class WebGLCompressedTexturePVRTC; |
402 friend class WebGLCompressedTextureS3TC; | 402 friend class WebGLCompressedTextureS3TC; |
403 friend class WebGLRenderingContextErrorMessageCallback; | 403 friend class WebGLRenderingContextErrorMessageCallback; |
404 friend class WebGLVertexArrayObjectOES; | 404 friend class WebGLVertexArrayObjectOES; |
405 friend class ScopedTexture2DRestorer; | 405 friend class ScopedTexture2DRestorer; |
| 406 friend class ScopedFramebufferRestorer; |
406 | 407 |
407 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsC
ontext3D>, const WebGLContextAttributes&); | 408 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsC
ontext3D>, const WebGLContextAttributes&); |
408 PassRefPtr<DrawingBuffer> createDrawingBuffer(PassOwnPtr<blink::WebGraphicsC
ontext3D>); | 409 PassRefPtr<DrawingBuffer> createDrawingBuffer(PassOwnPtr<blink::WebGraphicsC
ontext3D>); |
409 void initializeNewContext(); | 410 void initializeNewContext(); |
410 void setupFlags(); | 411 void setupFlags(); |
411 | 412 |
412 #if ENABLE(OILPAN) | 413 #if ENABLE(OILPAN) |
413 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; | 414 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con
st; |
414 #endif | 415 #endif |
415 | 416 |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 static IntSize oldestContextSize(); | 984 static IntSize oldestContextSize(); |
984 }; | 985 }; |
985 | 986 |
986 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 987 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
987 | 988 |
988 } // namespace blink | 989 } // namespace blink |
989 | 990 |
990 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 991 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
991 | 992 |
992 #endif // WebGLRenderingContextBase_h | 993 #endif // WebGLRenderingContextBase_h |
OLD | NEW |