| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 RendererGLContexts in the | 6 // and pepper's PGL. This API is used to manage OpenGL RendererGLContexts in the |
| 7 // Chrome renderer process in a way that is consistent with other platforms. | 7 // Chrome renderer process in a way that is consistent with other platforms. |
| 8 | 8 |
| 9 #ifndef CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ | 9 #ifndef CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ |
| 10 #define CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ | 10 #define CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // For a view RendererGLContext, display everything that has been rendered | 153 // For a view RendererGLContext, display everything that has been rendered |
| 154 // since the last call. For an offscreen RendererGLContext, resolve everything | 154 // since the last call. For an offscreen RendererGLContext, resolve everything |
| 155 // that has been rendered since the last call to a copy that can be accessed | 155 // that has been rendered since the last call to a copy that can be accessed |
| 156 // by the parent RendererGLContext. | 156 // by the parent RendererGLContext. |
| 157 bool SwapBuffers(); | 157 bool SwapBuffers(); |
| 158 | 158 |
| 159 // Run the task once the channel has been flushed. Takes care of deleting the | 159 // Run the task once the channel has been flushed. Takes care of deleting the |
| 160 // task whether the echo succeeds or not. | 160 // task whether the echo succeeds or not. |
| 161 bool Echo(const base::Closure& task); | 161 bool Echo(const base::Closure& task); |
| 162 | 162 |
| 163 // Sends an IPC message with the new state of surface visibility |
| 164 bool SetSurfaceVisible(bool visibility); |
| 165 |
| 163 // Create a TransportTextureHost object associated with the context. | 166 // Create a TransportTextureHost object associated with the context. |
| 164 scoped_refptr<TransportTextureHost> CreateTransportTextureHost(); | 167 scoped_refptr<TransportTextureHost> CreateTransportTextureHost(); |
| 165 | 168 |
| 166 // TODO(gman): Remove this | 169 // TODO(gman): Remove this |
| 167 void DisableShaderTranslation(); | 170 void DisableShaderTranslation(); |
| 168 | 171 |
| 169 // Allows direct access to the GLES2 implementation so a RendererGLContext | 172 // Allows direct access to the GLES2 implementation so a RendererGLContext |
| 170 // can be used without making it current. | 173 // can be used without making it current. |
| 171 gpu::gles2::GLES2Implementation* GetImplementation(); | 174 gpu::gles2::GLES2Implementation* GetImplementation(); |
| 172 | 175 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 202 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 205 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
| 203 int32 transfer_buffer_id_; | 206 int32 transfer_buffer_id_; |
| 204 gpu::gles2::GLES2Implementation* gles2_implementation_; | 207 gpu::gles2::GLES2Implementation* gles2_implementation_; |
| 205 Error last_error_; | 208 Error last_error_; |
| 206 int frame_number_; | 209 int frame_number_; |
| 207 | 210 |
| 208 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); | 211 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); |
| 209 }; | 212 }; |
| 210 | 213 |
| 211 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ | 214 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ |
| OLD | NEW |