OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_GPU_GL_SCOPED_BINDERS_H_ | |
piman
2012/07/26 20:25:03
correct header guard is CONTENT_COMMON_GPU_GL_SCOP
Pawel Osciak
2012/07/26 20:36:49
Done. Took inspiration from the only file in this
| |
6 #define CHROME_GPU_GL_SCOPED_BINDERS_H_ | |
7 | |
8 namespace gfx { | |
piman
2012/07/26 20:25:03
If it's here, it should be in the namespace conten
Pawel Osciak
2012/07/26 20:36:49
Done.
| |
9 | |
10 class ScopedFrameBufferBinder { | |
11 public: | |
12 explicit ScopedFrameBufferBinder(unsigned int fbo); | |
13 ~ScopedFrameBufferBinder(); | |
14 | |
15 private: | |
16 int old_fbo_; | |
17 }; | |
18 | |
19 class ScopedTextureBinder { | |
20 public: | |
21 explicit ScopedTextureBinder(unsigned int id); | |
22 ~ScopedTextureBinder(); | |
23 | |
24 private: | |
25 int old_id_; | |
26 }; | |
27 | |
28 } // namespace gfx | |
29 | |
30 #endif // CHROME_GPU_GL_SCOPED_BINDERS_H_ | |
OLD | NEW |