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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 EGLContext share_ctx, | 72 EGLContext share_ctx, |
73 const EGLint* attrib_list); | 73 const EGLint* attrib_list); |
74 void DestroyContext(EGLContext ctx); | 74 void DestroyContext(EGLContext ctx); |
75 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); | 75 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); |
76 | 76 |
77 // GpuControl implementation. | 77 // GpuControl implementation. |
78 virtual gpu::Capabilities GetCapabilities() OVERRIDE; | 78 virtual gpu::Capabilities GetCapabilities() OVERRIDE; |
79 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, | 79 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, |
80 size_t height, | 80 size_t height, |
81 unsigned internalformat, | 81 unsigned internalformat, |
| 82 unsigned usage, |
82 int32* id) OVERRIDE; | 83 int32* id) OVERRIDE; |
83 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; | 84 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; |
84 virtual uint32 InsertSyncPoint() OVERRIDE; | 85 virtual uint32 InsertSyncPoint() OVERRIDE; |
85 virtual void SignalSyncPoint(uint32 sync_point, | 86 virtual void SignalSyncPoint(uint32 sync_point, |
86 const base::Closure& callback) OVERRIDE; | 87 const base::Closure& callback) OVERRIDE; |
87 virtual void SignalQuery(uint32 query, | 88 virtual void SignalQuery(uint32 query, |
88 const base::Closure& callback) OVERRIDE; | 89 const base::Closure& callback) OVERRIDE; |
89 virtual void SetSurfaceVisible(bool visible) OVERRIDE; | 90 virtual void SetSurfaceVisible(bool visible) OVERRIDE; |
90 virtual void SendManagedMemoryStats( | 91 virtual void SendManagedMemoryStats( |
91 const gpu::ManagedMemoryStats& stats) OVERRIDE; | 92 const gpu::ManagedMemoryStats& stats) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
114 scoped_ptr<Config> config_; | 115 scoped_ptr<Config> config_; |
115 scoped_ptr<Surface> surface_; | 116 scoped_ptr<Surface> surface_; |
116 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 117 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
117 | 118 |
118 DISALLOW_COPY_AND_ASSIGN(Display); | 119 DISALLOW_COPY_AND_ASSIGN(Display); |
119 }; | 120 }; |
120 | 121 |
121 } // namespace egl | 122 } // namespace egl |
122 | 123 |
123 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
OLD | NEW |