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

Side by Side Diff: Source/modules/webgl/WebGLUniformLocation.h

Issue 1281953003: Revert of [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef WebGLUniformLocation_h 27 #ifndef WebGLUniformLocation_h
28 #define WebGLUniformLocation_h 28 #define WebGLUniformLocation_h
29 29
30 #include "bindings/core/v8/ScriptWrappable.h" 30 #include "bindings/core/v8/ScriptWrappable.h"
31 #include "modules/webgl/WebGLProgram.h" 31 #include "modules/webgl/WebGLProgram.h"
32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h"
32 34
33 namespace blink { 35 namespace blink {
34 36
35 class WebGLUniformLocation final : public GarbageCollected<WebGLUniformLocation> , public ScriptWrappable { 37 class WebGLUniformLocation final : public RefCountedWillBeGarbageCollected<WebGL UniformLocation>, public ScriptWrappable {
36 DEFINE_WRAPPERTYPEINFO(); 38 DEFINE_WRAPPERTYPEINFO();
37 public: 39 public:
38 static WebGLUniformLocation* create(WebGLProgram*, GLint location); 40 static PassRefPtrWillBeRawPtr<WebGLUniformLocation> create(WebGLProgram*, GL int location);
39 41
40 WebGLProgram* program() const; 42 WebGLProgram* program() const;
41 43
42 GLint location() const; 44 GLint location() const;
43 45
44 DECLARE_TRACE(); 46 DECLARE_TRACE();
45 47
46 protected: 48 protected:
47 WebGLUniformLocation(WebGLProgram*, GLint location); 49 WebGLUniformLocation(WebGLProgram*, GLint location);
48 50
49 private: 51 private:
50 Member<WebGLProgram> m_program; 52 RefPtrWillBeMember<WebGLProgram> m_program;
51 GLint m_location; 53 GLint m_location;
52 unsigned m_linkCount; 54 unsigned m_linkCount;
53 }; 55 };
54 56
55 } // namespace blink 57 } // namespace blink
56 58
57 #endif // WebGLUniformLocation_h 59 #endif // WebGLUniformLocation_h
OLDNEW
« no previous file with comments | « Source/modules/webgl/WebGLTransformFeedback.idl ('k') | Source/modules/webgl/WebGLUniformLocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698