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

Side by Side Diff: chrome/renderer/ggl/ggl.h

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/ggl/ggl.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 // This API is consistent with other OpenGL setup APIs like window's WGL 5 // This API is consistent with other OpenGL setup APIs like window's WGL
6 // and pepper's PGL. This API is used to manage OpenGL contexts in the Chrome 6 // and pepper's PGL. This API is used to manage OpenGL contexts in the Chrome
7 // renderer process in a way that is consistent with other platforms. It is 7 // renderer process in a way that is consistent with other platforms. It is
8 // a C style API to ease porting of existing OpenGL software to Chrome. 8 // a C style API to ease porting of existing OpenGL software to Chrome.
9 9
10 #ifndef CHROME_RENDERER_GGL_GGL_H_ 10 #ifndef CHROME_RENDERER_GGL_GGL_H_
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // For a view context, display everything that has been rendered since the 69 // For a view context, display everything that has been rendered since the
70 // last call. For an offscreen context, resolve everything that has been 70 // last call. For an offscreen context, resolve everything that has been
71 // rendered since the last call to a copy that can be accessed by the parent 71 // rendered since the last call to a copy that can be accessed by the parent
72 // context. 72 // context.
73 bool SwapBuffers(); 73 bool SwapBuffers();
74 74
75 // Destroy the given GGL context. 75 // Destroy the given GGL context.
76 bool DestroyContext(Context* context); 76 bool DestroyContext(Context* context);
77 77
78 // TODO(gman): Remove this
79 void DisableShaderTranslation(Context* context);
80
78 // Return the current GGL error. 81 // Return the current GGL error.
79 Error GetError(); 82 Error GetError();
80 83
81 } // namespace ggl 84 } // namespace ggl
82 85
83 #endif // CHROME_RENDERER_GGL_GGL_H_ 86 #endif // CHROME_RENDERER_GGL_GGL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/ggl/ggl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698