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

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

Issue 1812323002: Make the debug interface a GrGLTestInterface subclass. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: remove unused member Created 4 years, 9 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrTextureUnitObj_DEFINED 8 #ifndef GrTextureUnitObj_DEFINED
9 #define GrTextureUnitObj_DEFINED 9 #define GrTextureUnitObj_DEFINED
10 10
11 #include "GrFakeRefObj.h" 11 #include "GrFakeRefObj.h"
12 class GrTextureObj; 12 class GrTextureObj;
13 13
14 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
15 // Although texture unit objects are allocated & deallocated like the other 15 // Although texture unit objects are allocated & deallocated like the other
16 // GL emulation objects they are derived from GrFakeRefObj to provide some 16 // GL emulation objects they are derived from GrFakeRefObj to provide some
17 // uniformity in how the GrDebugGL class manages resources 17 // uniformity in how the debug interface class manages resources
18 class GrTextureUnitObj : public GrFakeRefObj { 18 class GrTextureUnitObj : public GrFakeRefObj {
19 GR_DEFINE_CREATOR(GrTextureUnitObj); 19 GR_DEFINE_CREATOR(GrTextureUnitObj);
20 20
21 public: 21 public:
22 GrTextureUnitObj() 22 GrTextureUnitObj()
23 : GrFakeRefObj() 23 : GrFakeRefObj()
24 , fNumber(0) 24 , fNumber(0)
25 , fTexture(nullptr) { 25 , fTexture(nullptr) {
26 } 26 }
27 27
28 void setNumber(GrGLenum number) { 28 void setNumber(GrGLenum number) {
29 fNumber = number; 29 fNumber = number;
30 } 30 }
31 GrGLenum getNumber() const { return fNumber; } 31 GrGLenum getNumber() const { return fNumber; }
32 32
33 void setTexture(GrTextureObj *texture); 33 void setTexture(GrTextureObj *texture);
34 GrTextureObj *getTexture() { return fTexture; } 34 GrTextureObj *getTexture() { return fTexture; }
35 35
36 protected: 36 protected:
37 private: 37 private:
38 GrGLenum fNumber; 38 GrGLenum fNumber;
39 GrTextureObj *fTexture; 39 GrTextureObj *fTexture;
40 40
41 typedef GrFakeRefObj INHERITED; 41 typedef GrFakeRefObj INHERITED;
42 }; 42 };
43 43
44 #endif // GrTextureUnitObj_DEFINED 44 #endif // GrTextureUnitObj_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698