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

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

Issue 2392313004: [wrapper-tracing] Add tracing to WebGLRenderingContextBase and friends (Closed)
Patch Set: Add WebGL2RenderingContextBase Created 4 years, 2 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 /* 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void decreaseActiveTransformFeedbackCount(); 58 void decreaseActiveTransformFeedbackCount();
59 59
60 WebGLShader* getAttachedShader(GLenum); 60 WebGLShader* getAttachedShader(GLenum);
61 bool attachShader(WebGLShader*); 61 bool attachShader(WebGLShader*);
62 bool detachShader(WebGLShader*); 62 bool detachShader(WebGLShader*);
63 63
64 virtual void visitChildDOMWrappers(v8::Isolate*, 64 virtual void visitChildDOMWrappers(v8::Isolate*,
65 const v8::Persistent<v8::Object>&); 65 const v8::Persistent<v8::Object>&);
66 66
67 DECLARE_VIRTUAL_TRACE(); 67 DECLARE_VIRTUAL_TRACE();
68 DECLARE_VIRTUAL_TRACE_WRAPPERS();
68 69
69 protected: 70 protected:
70 explicit WebGLProgram(WebGLRenderingContextBase*); 71 explicit WebGLProgram(WebGLRenderingContextBase*);
71 72
72 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; 73 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override;
73 74
74 private: 75 private:
75 bool isProgram() const override { return true; } 76 bool isProgram() const override { return true; }
76 77
77 void cacheInfoIfNeeded(WebGLRenderingContextBase*); 78 void cacheInfoIfNeeded(WebGLRenderingContextBase*);
(...skipping 10 matching lines...) Expand all
88 89
89 Member<WebGLShader> m_vertexShader; 90 Member<WebGLShader> m_vertexShader;
90 Member<WebGLShader> m_fragmentShader; 91 Member<WebGLShader> m_fragmentShader;
91 92
92 bool m_infoValid; 93 bool m_infoValid;
93 }; 94 };
94 95
95 } // namespace blink 96 } // namespace blink
96 97
97 #endif // WebGLProgram_h 98 #endif // WebGLProgram_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698