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

Side by Side Diff: content/common/gpu/gl_scoped_binders.h

Issue 10827052: Extract Scoped{FrameBuffer,Texture}Binder and clean up TFP in VAVDA. (Closed) Base URL: https://git.chromium.org/git/chromium/src@master
Patch Set: Created 8 years, 4 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 | « no previous file | content/common/gpu/gl_scoped_binders.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gl_scoped_binders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698