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_RENDERER_GL_CONTEXT_H_ | 9 #ifndef CONTENT_RENDERER_RENDERER_GL_CONTEXT_H_ |
10 #define CONTENT_RENDERER_RENDERER_GL_CONTEXT_H_ | 10 #define CONTENT_RENDERER_RENDERER_GL_CONTEXT_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback_old.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
19 #include "ui/gfx/size.h" | 19 #include "ui/gfx/size.h" |
20 | 20 |
21 class GpuChannelHost; | 21 class GpuChannelHost; |
22 class MessageLoop; | 22 class MessageLoop; |
23 class CommandBufferProxy; | 23 class CommandBufferProxy; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 gpu::gles2::GLES2CmdHelper* gles2_helper_; | 229 gpu::gles2::GLES2CmdHelper* gles2_helper_; |
230 int32 transfer_buffer_id_; | 230 int32 transfer_buffer_id_; |
231 gpu::gles2::GLES2Implementation* gles2_implementation_; | 231 gpu::gles2::GLES2Implementation* gles2_implementation_; |
232 gfx::Size size_; | 232 gfx::Size size_; |
233 Error last_error_; | 233 Error last_error_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); | 235 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); |
236 }; | 236 }; |
237 | 237 |
238 #endif // CONTENT_RENDERER_RENDERER_GL_CONTEXT_H_ | 238 #endif // CONTENT_RENDERER_RENDERER_GL_CONTEXT_H_ |
OLD | NEW |