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 CONTENT_COMMON_GPU_GL_SCOPED_BINDERS_H_ |
| 6 #define CONTENT_COMMON_GPU_GL_SCOPED_BINDERS_H_ |
| 7 |
| 8 namespace content { |
| 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 content |
| 29 |
| 30 #endif // CONTENT_COMMON_GPU_GL_SCOPED_BINDERS_H_ |
OLD | NEW |