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

Side by Side Diff: app/gfx/gl/gl_context.h

Issue 5987004: Map the render process's glBindFramebuffer(0) to the context's backing FBO.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | app/gfx/gl/gl_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef APP_GFX_GL_GL_CONTEXT_H_ 5 #ifndef APP_GFX_GL_GL_CONTEXT_H_
6 #define APP_GFX_GL_GL_CONTEXT_H_ 6 #define APP_GFX_GL_GL_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // Get the size of the back buffer. 39 // Get the size of the back buffer.
40 virtual gfx::Size GetSize() = 0; 40 virtual gfx::Size GetSize() = 0;
41 41
42 // Get the underlying platform specific GL context "handle". 42 // Get the underlying platform specific GL context "handle".
43 virtual void* GetHandle() = 0; 43 virtual void* GetHandle() = 0;
44 44
45 // Set swap interval. This context must be current. 45 // Set swap interval. This context must be current.
46 virtual void SetSwapInterval(int interval) = 0; 46 virtual void SetSwapInterval(int interval) = 0;
47 47
48 // Returns the internal frame buffer object name if the context is backed by
49 // FBO. Otherwise returns 0.
50 virtual unsigned int GetBackingFrameBufferObject();
51
48 // Returns space separated list of extensions. The context must be current. 52 // Returns space separated list of extensions. The context must be current.
49 virtual std::string GetExtensions(); 53 virtual std::string GetExtensions();
50 54
51 // Returns whether the current context supports the named extension. The 55 // Returns whether the current context supports the named extension. The
52 // context must be current. 56 // context must be current.
53 bool HasExtension(const char* name); 57 bool HasExtension(const char* name);
54 58
55 static bool InitializeOneOff(); 59 static bool InitializeOneOff();
56 60
57 #if !defined(OS_MACOSX) 61 #if !defined(OS_MACOSX)
(...skipping 11 matching lines...) Expand all
69 protected: 73 protected:
70 bool InitializeCommon(); 74 bool InitializeCommon();
71 75
72 private: 76 private:
73 DISALLOW_COPY_AND_ASSIGN(GLContext); 77 DISALLOW_COPY_AND_ASSIGN(GLContext);
74 }; 78 };
75 79
76 } // namespace gfx 80 } // namespace gfx
77 81
78 #endif // APP_GFX_GL_GL_CONTEXT_H_ 82 #endif // APP_GFX_GL_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | app/gfx/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698