diff options
author | 2012-04-05 14:40:53 +0000 | |
---|---|---|
committer | 2012-04-05 14:40:53 +0000 | |
commit | dd743fefad9764ad86d7f69deec32e9a3b5de47f (patch) | |
tree | cb07a5476a353d836510893cc146bc1ce38ae9df /src/gpu/gl/debug/GrRenderBufferObj.h | |
parent | ded33215f6c193ba126dadcec5583f18a756e399 (diff) |
Initial split up of Debug Interface into separate files
http://codereview.appspot.com/5979048/
git-svn-id: http://skia.googlecode.com/svn/trunk@3616 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/debug/GrRenderBufferObj.h')
-rw-r--r-- | src/gpu/gl/debug/GrRenderBufferObj.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/gpu/gl/debug/GrRenderBufferObj.h b/src/gpu/gl/debug/GrRenderBufferObj.h new file mode 100644 index 0000000000..344b90e5a9 --- /dev/null +++ b/src/gpu/gl/debug/GrRenderBufferObj.h @@ -0,0 +1,40 @@ + +/* + * Copyright 2012 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef GrRenderBufferObj_DEFINED +#define GrRenderBufferObj_DEFINED + +#include "GrFBBindableObj.h" + +//////////////////////////////////////////////////////////////////////////////// +class GrRenderBufferObj : public GrFBBindableObj { + GR_DEFINE_CREATOR(GrRenderBufferObj); + +public: + GrRenderBufferObj() + : GrFBBindableObj() + , fBound(false) { + } + + void setBound() { fBound = true; } + void resetBound() { fBound = false; } + bool getBound() const { return fBound; } + + virtual void deleteAction() SK_OVERRIDE { + + this->INHERITED::deleteAction(); + } + +protected: +private: + bool fBound; // is this render buffer currently bound via "glBindRenderbuffer"? + + typedef GrFBBindableObj INHERITED; +}; + +#endif // GrRenderBufferObj_DEFINED |