| 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 CONTENT_RENDERER_GGL_H_ |
| 11 #define CHROME_RENDERER_GGL_GGL_H_ | 11 #define CONTENT_RENDERER_GGL_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 17 | 17 |
| 18 class GpuChannelHost; | 18 class GpuChannelHost; |
| 19 class MessageLoop; | 19 class MessageLoop; |
| 20 class CommandBufferProxy; | 20 class CommandBufferProxy; |
| 21 | 21 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Error GetError(Context* context); | 165 Error GetError(Context* context); |
| 166 | 166 |
| 167 // Return true if GPU process reported context lost or there was a problem | 167 // Return true if GPU process reported context lost or there was a problem |
| 168 // communicating with the GPU process. | 168 // communicating with the GPU process. |
| 169 bool IsCommandBufferContextLost(Context* context); | 169 bool IsCommandBufferContextLost(Context* context); |
| 170 | 170 |
| 171 CommandBufferProxy* GetCommandBufferProxy(Context* context); | 171 CommandBufferProxy* GetCommandBufferProxy(Context* context); |
| 172 | 172 |
| 173 } // namespace ggl | 173 } // namespace ggl |
| 174 | 174 |
| 175 #endif // CHROME_RENDERER_GGL_GGL_H_ | 175 #endif // CONTENT_RENDERER_GGL_H_ |
| OLD | NEW |