| 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_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
| 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 create_offscreen_ = true; | 42 create_offscreen_ = true; |
| 43 create_offscreen_width_ = width; | 43 create_offscreen_width_ = width; |
| 44 create_offscreen_height_ = height; | 44 create_offscreen_height_ = height; |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool is_initialized() const { return is_initialized_; } | 47 bool is_initialized() const { return is_initialized_; } |
| 48 bool Initialize(); | 48 bool Initialize(); |
| 49 | 49 |
| 50 // Config routines. | 50 // Config routines. |
| 51 bool IsValidConfig(EGLConfig config); | 51 bool IsValidConfig(EGLConfig config); |
| 52 bool ChooseConfigs( |
| 53 EGLConfig* configs, EGLint config_size, EGLint* num_config); |
| 52 bool GetConfigs(EGLConfig* configs, EGLint config_size, EGLint* num_config); | 54 bool GetConfigs(EGLConfig* configs, EGLint config_size, EGLint* num_config); |
| 53 bool GetConfigAttrib(EGLConfig config, EGLint attribute, EGLint* value); | 55 bool GetConfigAttrib(EGLConfig config, EGLint attribute, EGLint* value); |
| 54 | 56 |
| 55 // Surface routines. | 57 // Surface routines. |
| 56 bool IsValidNativeWindow(EGLNativeWindowType win); | 58 bool IsValidNativeWindow(EGLNativeWindowType win); |
| 57 bool IsValidSurface(EGLSurface surface); | 59 bool IsValidSurface(EGLSurface surface); |
| 58 EGLSurface CreateWindowSurface(EGLConfig config, | 60 EGLSurface CreateWindowSurface(EGLConfig config, |
| 59 EGLNativeWindowType win, | 61 EGLNativeWindowType win, |
| 60 const EGLint* attrib_list); | 62 const EGLint* attrib_list); |
| 61 void DestroySurface(EGLSurface surface); | 63 void DestroySurface(EGLSurface surface); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 90 scoped_ptr<Config> config_; | 92 scoped_ptr<Config> config_; |
| 91 scoped_ptr<Surface> surface_; | 93 scoped_ptr<Surface> surface_; |
| 92 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 94 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
| 93 | 95 |
| 94 DISALLOW_COPY_AND_ASSIGN(Display); | 96 DISALLOW_COPY_AND_ASSIGN(Display); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace egl | 99 } // namespace egl |
| 98 | 100 |
| 99 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 101 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
| OLD | NEW |