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

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

Issue 709203002: Remove more 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // This is to be called everytime after the program is successfully linked. 53 // This is to be called everytime after the program is successfully linked.
54 // We don't deal with integer overflow here, assuming in reality a program 54 // We don't deal with integer overflow here, assuming in reality a program
55 // will never be linked so many times. 55 // will never be linked so many times.
56 // Also, we invalidate the cached program info. 56 // Also, we invalidate the cached program info.
57 void increaseLinkCount(); 57 void increaseLinkCount();
58 58
59 WebGLShader* getAttachedShader(GLenum); 59 WebGLShader* getAttachedShader(GLenum);
60 bool attachShader(WebGLShader*); 60 bool attachShader(WebGLShader*);
61 bool detachShader(WebGLShader*); 61 bool detachShader(WebGLShader*);
62 62
63 virtual void trace(Visitor*) override;
64
65 protected: 63 protected:
66 explicit WebGLProgram(WebGLRenderingContextBase*); 64 explicit WebGLProgram(WebGLRenderingContextBase*);
67 65
68 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override; 66 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override;
69 67
70 private: 68 private:
71 virtual bool isProgram() const override { return true; } 69 virtual bool isProgram() const override { return true; }
72 70
73 void cacheActiveAttribLocations(blink::WebGraphicsContext3D*); 71 void cacheActiveAttribLocations(blink::WebGraphicsContext3D*);
74 void cacheInfoIfNeeded(); 72 void cacheInfoIfNeeded();
75 73
76 Vector<GLint> m_activeAttribLocations; 74 Vector<GLint> m_activeAttribLocations;
77 75
78 GLint m_linkStatus; 76 GLint m_linkStatus;
79 77
80 // This is used to track whether a WebGLUniformLocation belongs to this 78 // This is used to track whether a WebGLUniformLocation belongs to this
81 // program or not. 79 // program or not.
82 unsigned m_linkCount; 80 unsigned m_linkCount;
83 81
84 RefPtr<WebGLShader> m_vertexShader; 82 RefPtr<WebGLShader> m_vertexShader;
85 RefPtr<WebGLShader> m_fragmentShader; 83 RefPtr<WebGLShader> m_fragmentShader;
86 84
87 bool m_infoValid; 85 bool m_infoValid;
88 }; 86 };
89 87
90 } // namespace blink 88 } // namespace blink
91 89
92 #endif // WebGLProgram_h 90 #endif // WebGLProgram_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLFramebuffer.cpp ('k') | sky/engine/core/html/canvas/WebGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698