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

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

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/GrBufferObj.h ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | 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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrFrameBufferObj_DEFINED 9 #ifndef GrFrameBufferObj_DEFINED
10 #define GrFrameBufferObj_DEFINED 10 #define GrFrameBufferObj_DEFINED
(...skipping 28 matching lines...) Expand all
39 39
40 void setColor(GrFBBindableObj *buffer); 40 void setColor(GrFBBindableObj *buffer);
41 GrFBBindableObj *getColor() { return fColorBuffer; } 41 GrFBBindableObj *getColor() { return fColorBuffer; }
42 42
43 void setDepth(GrFBBindableObj *buffer); 43 void setDepth(GrFBBindableObj *buffer);
44 GrFBBindableObj *getDepth() { return fDepthBuffer; } 44 GrFBBindableObj *getDepth() { return fDepthBuffer; }
45 45
46 void setStencil(GrFBBindableObj *buffer); 46 void setStencil(GrFBBindableObj *buffer);
47 GrFBBindableObj *getStencil() { return fStencilBuffer; } 47 GrFBBindableObj *getStencil() { return fStencilBuffer; }
48 48
49 virtual void deleteAction() SK_OVERRIDE { 49 void deleteAction() SK_OVERRIDE {
50 50
51 setColor(NULL); 51 setColor(NULL);
52 setDepth(NULL); 52 setDepth(NULL);
53 setStencil(NULL); 53 setStencil(NULL);
54 54
55 this->INHERITED::deleteAction(); 55 this->INHERITED::deleteAction();
56 } 56 }
57 57
58 protected: 58 protected:
59 private: 59 private:
60 bool fBound; // is this frame buffer currently bound via "glBindFrame buffer"? 60 bool fBound; // is this frame buffer currently bound via "glBindFrame buffer"?
61 GrFBBindableObj * fColorBuffer; 61 GrFBBindableObj * fColorBuffer;
62 GrFBBindableObj * fDepthBuffer; 62 GrFBBindableObj * fDepthBuffer;
63 GrFBBindableObj * fStencilBuffer; 63 GrFBBindableObj * fStencilBuffer;
64 64
65 typedef GrFakeRefObj INHERITED; 65 typedef GrFakeRefObj INHERITED;
66 }; 66 };
67 67
68 #endif // GrFrameBufferObj_DEFINED 68 #endif // GrFrameBufferObj_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrBufferObj.h ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698