Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 287563002: Added Blink-side support for EXT_blend_minmax WebGL extension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made sure validation set the right glError Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 27 matching lines...) Expand all
38 38
39 virtual unsigned version() const OVERRIDE { return 1; } 39 virtual unsigned version() const OVERRIDE { return 1; }
40 virtual String contextName() const OVERRIDE { return "WebGLRenderingContext" ; } 40 virtual String contextName() const OVERRIDE { return "WebGLRenderingContext" ; }
41 virtual void registerContextExtensions() OVERRIDE; 41 virtual void registerContextExtensions() OVERRIDE;
42 42
43 private: 43 private:
44 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*); 44 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*);
45 45
46 // Enabled extension objects. 46 // Enabled extension objects.
47 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays; 47 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays;
48 RefPtr<EXTBlendMinMax> m_extBlendMinMax;
48 RefPtr<EXTFragDepth> m_extFragDepth; 49 RefPtr<EXTFragDepth> m_extFragDepth;
49 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD; 50 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD;
50 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 51 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
51 RefPtr<OESTextureFloat> m_oesTextureFloat; 52 RefPtr<OESTextureFloat> m_oesTextureFloat;
52 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear; 53 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear;
53 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; 54 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat;
54 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; 55 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear;
55 RefPtr<OESStandardDerivatives> m_oesStandardDerivatives; 56 RefPtr<OESStandardDerivatives> m_oesStandardDerivatives;
56 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject; 57 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject;
57 RefPtr<OESElementIndexUint> m_oesElementIndexUint; 58 RefPtr<OESElementIndexUint> m_oesElementIndexUint;
58 RefPtr<WebGLLoseContext> m_webglLoseContext; 59 RefPtr<WebGLLoseContext> m_webglLoseContext;
59 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 60 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
60 RefPtr<WebGLDebugShaders> m_webglDebugShaders; 61 RefPtr<WebGLDebugShaders> m_webglDebugShaders;
61 RefPtr<WebGLDrawBuffers> m_webglDrawBuffers; 62 RefPtr<WebGLDrawBuffers> m_webglDrawBuffers;
62 RefPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC; 63 RefPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC;
63 RefPtr<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1; 64 RefPtr<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1;
64 RefPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; 65 RefPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC;
65 RefPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 66 RefPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC;
66 RefPtr<WebGLDepthTexture> m_webglDepthTexture; 67 RefPtr<WebGLDepthTexture> m_webglDepthTexture;
67 }; 68 };
68 69
69 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, 70 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context,
70 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, 71 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1,
71 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ; 72 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ;
72 73
73 } // namespace WebCore 74 } // namespace WebCore
74 75
75 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLExtensionName.h ('k') | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698