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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.h

Issue 2212163002: Add some plumbing for the color management of canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGL2RenderingContext_h 5 #ifndef WebGL2RenderingContext_h
6 #define WebGL2RenderingContext_h 6 #define WebGL2RenderingContext_h
7 7
8 #include "core/html/canvas/CanvasRenderingContextFactory.h" 8 #include "core/html/canvas/CanvasRenderingContextFactory.h"
9 #include "modules/webgl/WebGL2RenderingContextBase.h" 9 #include "modules/webgl/WebGL2RenderingContextBase.h"
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 String contextName() const override { return "WebGL2RenderingContext"; } 35 String contextName() const override { return "WebGL2RenderingContext"; }
36 void registerContextExtensions() override; 36 void registerContextExtensions() override;
37 void setCanvasGetContextResult(RenderingContext&) final; 37 void setCanvasGetContextResult(RenderingContext&) final;
38 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; 38 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final;
39 39
40 DECLARE_VIRTUAL_TRACE(); 40 DECLARE_VIRTUAL_TRACE();
41 41
42 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 42 DECLARE_VIRTUAL_TRACE_WRAPPERS();
43 43
44 protected: 44 protected:
45 WebGL2RenderingContext(HTMLCanvasElement* passedCanvas, std::unique_ptr<WebG raphicsContext3DProvider>, const WebGLContextAttributes& requestedAttributes); 45 WebGL2RenderingContext(HTMLCanvasElement* passedCanvas, std::unique_ptr<WebG raphicsContext3DProvider>, const CanvasContextCreationAttributes& requestedAttri butes);
46 46
47 Member<EXTColorBufferFloat> m_extColorBufferFloat; 47 Member<EXTColorBufferFloat> m_extColorBufferFloat;
48 Member<EXTDisjointTimerQuery> m_extDisjointTimerQuery; 48 Member<EXTDisjointTimerQuery> m_extDisjointTimerQuery;
49 Member<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 49 Member<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
50 Member<OESTextureFloatLinear> m_oesTextureFloatLinear; 50 Member<OESTextureFloatLinear> m_oesTextureFloatLinear;
51 Member<WebGLCompressedTextureASTC> m_webglCompressedTextureASTC; 51 Member<WebGLCompressedTextureASTC> m_webglCompressedTextureASTC;
52 Member<WebGLCompressedTextureATC> m_webglCompressedTextureATC; 52 Member<WebGLCompressedTextureATC> m_webglCompressedTextureATC;
53 Member<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1; 53 Member<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1;
54 Member<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; 54 Member<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC;
55 Member<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 55 Member<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC;
56 Member<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 56 Member<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
57 Member<WebGLDebugShaders> m_webglDebugShaders; 57 Member<WebGLDebugShaders> m_webglDebugShaders;
58 Member<WebGLLoseContext> m_webglLoseContext; 58 Member<WebGLLoseContext> m_webglLoseContext;
59 }; 59 };
60 60
61 DEFINE_TYPE_CASTS(WebGL2RenderingContext, CanvasRenderingContext, context, 61 DEFINE_TYPE_CASTS(WebGL2RenderingContext, CanvasRenderingContext, context,
62 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 2, 62 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 2,
63 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 2) ; 63 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 2) ;
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif 67 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698