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

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

Issue 171263004: Adding Blink-side support for EXT_shader_texture_lod (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed wrong extension string Created 6 years, 8 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 28 matching lines...) Expand all
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<EXTFragDepth> m_extFragDepth; 48 RefPtr<EXTFragDepth> m_extFragDepth;
49 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD;
49 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 50 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
50 RefPtr<OESTextureFloat> m_oesTextureFloat; 51 RefPtr<OESTextureFloat> m_oesTextureFloat;
51 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear; 52 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear;
52 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; 53 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat;
53 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; 54 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear;
54 RefPtr<OESStandardDerivatives> m_oesStandardDerivatives; 55 RefPtr<OESStandardDerivatives> m_oesStandardDerivatives;
55 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject; 56 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject;
56 RefPtr<OESElementIndexUint> m_oesElementIndexUint; 57 RefPtr<OESElementIndexUint> m_oesElementIndexUint;
57 RefPtr<WebGLLoseContext> m_webglLoseContext; 58 RefPtr<WebGLLoseContext> m_webglLoseContext;
58 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 59 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
59 RefPtr<WebGLDebugShaders> m_webglDebugShaders; 60 RefPtr<WebGLDebugShaders> m_webglDebugShaders;
60 RefPtr<WebGLDrawBuffers> m_webglDrawBuffers; 61 RefPtr<WebGLDrawBuffers> m_webglDrawBuffers;
61 RefPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC; 62 RefPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC;
62 RefPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; 63 RefPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC;
63 RefPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 64 RefPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC;
64 RefPtr<WebGLDepthTexture> m_webglDepthTexture; 65 RefPtr<WebGLDepthTexture> m_webglDepthTexture;
65 }; 66 };
66 67
67 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, 68 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context,
68 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, 69 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1,
69 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ; 70 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ;
70 71
71 } // namespace WebCore 72 } // namespace WebCore
72 73
73 #endif 74 #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