| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |