| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 5 #ifndef GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 6 #define GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "gl_in_process_context_export.h" | 13 #include "gl_in_process_context_export.h" |
| 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 15 #include "gpu/command_buffer/service/in_process_command_buffer.h" | 15 #include "gpu/ipc/in_process_command_buffer.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gl/gl_surface.h" | 17 #include "ui/gl/gl_surface.h" |
| 18 #include "ui/gl/gpu_preference.h" | 18 #include "ui/gl/gpu_preference.h" |
| 19 | 19 |
| 20 namespace gfx { | 20 namespace gfx { |
| 21 class Size; | 21 class Size; |
| 22 } | 22 } |
| 23 | 23 |
| 24 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
| 25 namespace gl { | 25 namespace gl { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Allows direct access to the GLES2 implementation so a GLInProcessContext | 61 // Allows direct access to the GLES2 implementation so a GLInProcessContext |
| 62 // can be used without making it current. | 62 // can be used without making it current. |
| 63 virtual gles2::GLES2Implementation* GetImplementation() = 0; | 63 virtual gles2::GLES2Implementation* GetImplementation() = 0; |
| 64 | 64 |
| 65 virtual void SetLock(base::Lock* lock) = 0; | 65 virtual void SetLock(base::Lock* lock) = 0; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace gpu | 68 } // namespace gpu |
| 69 | 69 |
| 70 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 70 #endif // GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| OLD | NEW |