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

Side by Side Diff: sky/engine/core/html/canvas/WebGLRenderingContext.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 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 23 matching lines...) Expand all
34 class WebGLRenderingContext final : public WebGLRenderingContextBase, public Scr iptWrappable { 34 class WebGLRenderingContext final : public WebGLRenderingContextBase, public Scr iptWrappable {
35 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
36 public: 36 public:
37 static PassOwnPtr<WebGLRenderingContext> create(HTMLCanvasElement*, WebGLCon textAttributes*); 37 static PassOwnPtr<WebGLRenderingContext> create(HTMLCanvasElement*, WebGLCon textAttributes*);
38 virtual ~WebGLRenderingContext(); 38 virtual ~WebGLRenderingContext();
39 39
40 virtual unsigned version() const override { return 1; } 40 virtual unsigned version() const override { return 1; }
41 virtual String contextName() const override { return "WebGLRenderingContext" ; } 41 virtual String contextName() const override { return "WebGLRenderingContext" ; }
42 virtual void registerContextExtensions() override; 42 virtual void registerContextExtensions() override;
43 43
44 virtual void trace(Visitor*) override;
45
46 private: 44 private:
47 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*); 45 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*);
48 46
49 // Enabled extension objects. 47 // Enabled extension objects.
50 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays; 48 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays;
51 RefPtr<EXTBlendMinMax> m_extBlendMinMax; 49 RefPtr<EXTBlendMinMax> m_extBlendMinMax;
52 RefPtr<EXTFragDepth> m_extFragDepth; 50 RefPtr<EXTFragDepth> m_extFragDepth;
53 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD; 51 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD;
54 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 52 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
55 RefPtr<OESTextureFloat> m_oesTextureFloat; 53 RefPtr<OESTextureFloat> m_oesTextureFloat;
(...skipping 14 matching lines...) Expand all
70 RefPtr<WebGLDepthTexture> m_webglDepthTexture; 68 RefPtr<WebGLDepthTexture> m_webglDepthTexture;
71 }; 69 };
72 70
73 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, 71 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context,
74 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, 72 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1,
75 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ; 73 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ;
76 74
77 } // namespace blink 75 } // namespace blink
78 76
79 #endif // WebGLRenderingContext_h 77 #endif // WebGLRenderingContext_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLRenderbuffer.cpp ('k') | sky/engine/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698