| 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_ |
| 11 #define CHROME_RENDERER_GGL_GGL_H_ | 11 #define CHROME_RENDERER_GGL_GGL_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "gfx/native_widget_types.h" | 15 #include "gfx/native_widget_types.h" |
| 16 #include "gfx/size.h" | 16 #include "gfx/size.h" |
| 17 | 17 |
| 18 class GpuChannelHost; | 18 class GpuChannelHost; |
| 19 class MessageLoop; | 19 class MessageLoop; |
| 20 class CommandBufferProxy; |
| 20 | 21 |
| 21 namespace gpu { | 22 namespace gpu { |
| 22 namespace gles2 { | 23 namespace gles2 { |
| 23 class GLES2Implementation; | 24 class GLES2Implementation; |
| 24 } | 25 } |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace media { | 28 namespace media { |
| 28 class VideoDecodeContext; | 29 class VideoDecodeContext; |
| 29 class VideoDecodeEngine; | 30 class VideoDecodeEngine; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // can be used without making it current. | 159 // can be used without making it current. |
| 159 gpu::gles2::GLES2Implementation* GetImplementation(Context* context); | 160 gpu::gles2::GLES2Implementation* GetImplementation(Context* context); |
| 160 | 161 |
| 161 // Return the current GGL error. | 162 // Return the current GGL error. |
| 162 Error GetError(Context* context); | 163 Error GetError(Context* context); |
| 163 | 164 |
| 164 // Return true if GPU process reported context lost or there was a problem | 165 // Return true if GPU process reported context lost or there was a problem |
| 165 // communicating with the GPU process. | 166 // communicating with the GPU process. |
| 166 bool IsCommandBufferContextLost(Context* context); | 167 bool IsCommandBufferContextLost(Context* context); |
| 167 | 168 |
| 169 CommandBufferProxy* GetCommandBufferProxy(Context* context); |
| 170 |
| 168 } // namespace ggl | 171 } // namespace ggl |
| 169 | 172 |
| 170 #endif // CHROME_RENDERER_GGL_GGL_H_ | 173 #endif // CHROME_RENDERER_GGL_GGL_H_ |
| OLD | NEW |