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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Context routines. | 68 // Context routines. |
69 bool IsValidContext(EGLContext ctx); | 69 bool IsValidContext(EGLContext ctx); |
70 EGLContext CreateContext(EGLConfig config, | 70 EGLContext CreateContext(EGLConfig config, |
71 EGLContext share_ctx, | 71 EGLContext share_ctx, |
72 const EGLint* attrib_list); | 72 const EGLint* attrib_list); |
73 void DestroyContext(EGLContext ctx); | 73 void DestroyContext(EGLContext ctx); |
74 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); | 74 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); |
75 | 75 |
76 // GpuControl implementation. | 76 // GpuControl implementation. |
77 gpu::Capabilities GetCapabilities() override; | 77 gpu::Capabilities GetCapabilities() override; |
78 int32_t CreateImage(ClientBuffer buffer, | 78 int32_t CreateImage(ClientBuffer* const buffers, |
79 size_t width, | 79 size_t width, |
80 size_t height, | 80 size_t height, |
81 unsigned internalformat) override; | 81 unsigned internalformat) override; |
82 void DestroyImage(int32_t id) override; | 82 void DestroyImage(int32_t id) override; |
83 int32_t CreateGpuMemoryBufferImage(size_t width, | 83 int32_t CreateGpuMemoryBufferImage(size_t width, |
84 size_t height, | 84 size_t height, |
85 unsigned internalformat, | 85 unsigned internalformat, |
86 unsigned usage) override; | 86 unsigned usage) override; |
87 uint32 InsertSyncPoint() override; | 87 uint32 InsertSyncPoint() override; |
88 uint32 InsertFutureSyncPoint() override; | 88 uint32 InsertFutureSyncPoint() override; |
(...skipping 26 matching lines...) Expand all Loading... |
115 scoped_ptr<Config> config_; | 115 scoped_ptr<Config> config_; |
116 scoped_ptr<Surface> surface_; | 116 scoped_ptr<Surface> surface_; |
117 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 117 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(Display); | 119 DISALLOW_COPY_AND_ASSIGN(Display); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace egl | 122 } // namespace egl |
123 | 123 |
124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
OLD | NEW |