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

Side by Side Diff: src/gpu/gl/debug/GrProgramObj.h

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 8 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
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | src/gpu/gl/debug/GrProgramObj.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrProgramObj_DEFINED
9 #define GrProgramObj_DEFINED
10
11 #include "SkTArray.h"
12 #include "GrFakeRefObj.h"
13 class GrShaderObj;
14
15 ////////////////////////////////////////////////////////////////////////////////
16 class GrProgramObj : public GrFakeRefObj {
17 GR_DEFINE_CREATOR(GrProgramObj);
18
19 public:
20 GrProgramObj()
21 : GrFakeRefObj()
22 , fInUse(false) {}
23
24 void AttachShader(GrShaderObj *shader);
25
26 void deleteAction() override;
27
28 // TODO: this flag system won't work w/ multiple contexts!
29 void setInUse() { fInUse = true; }
30 void resetInUse() { fInUse = false; }
31 bool getInUse() const { return fInUse; }
32
33 protected:
34
35 private:
36 SkTArray<GrShaderObj *> fShaders;
37 bool fInUse; // has this program been activated by a glUseProgram call?
38
39 typedef GrFakeRefObj INHERITED;
40 };
41
42 #endif // GrProgramObj_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | src/gpu/gl/debug/GrProgramObj.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698