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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int32* id) OVERRIDE; | 82 int32* id) OVERRIDE; |
83 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; | 83 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; |
84 virtual uint32 InsertSyncPoint() OVERRIDE; | 84 virtual uint32 InsertSyncPoint() OVERRIDE; |
85 virtual uint32 InsertFutureSyncPoint() OVERRIDE; | 85 virtual uint32 InsertFutureSyncPoint() OVERRIDE; |
86 virtual void RetireSyncPoint(uint32 sync_point) OVERRIDE; | 86 virtual void RetireSyncPoint(uint32 sync_point) OVERRIDE; |
87 virtual void SignalSyncPoint(uint32 sync_point, | 87 virtual void SignalSyncPoint(uint32 sync_point, |
88 const base::Closure& callback) OVERRIDE; | 88 const base::Closure& callback) OVERRIDE; |
89 virtual void SignalQuery(uint32 query, | 89 virtual void SignalQuery(uint32 query, |
90 const base::Closure& callback) OVERRIDE; | 90 const base::Closure& callback) OVERRIDE; |
91 virtual void SetSurfaceVisible(bool visible) OVERRIDE; | 91 virtual void SetSurfaceVisible(bool visible) OVERRIDE; |
92 virtual void Echo(const base::Closure& callback) OVERRIDE; | |
93 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; | 92 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; |
94 | 93 |
95 private: | 94 private: |
96 EGLNativeDisplayType display_id_; | 95 EGLNativeDisplayType display_id_; |
97 | 96 |
98 bool is_initialized_; | 97 bool is_initialized_; |
99 bool create_offscreen_; | 98 bool create_offscreen_; |
100 int create_offscreen_width_; | 99 int create_offscreen_width_; |
101 int create_offscreen_height_; | 100 int create_offscreen_height_; |
102 | 101 |
(...skipping 10 matching lines...) Expand all Loading... |
113 scoped_ptr<Config> config_; | 112 scoped_ptr<Config> config_; |
114 scoped_ptr<Surface> surface_; | 113 scoped_ptr<Surface> surface_; |
115 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 114 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
116 | 115 |
117 DISALLOW_COPY_AND_ASSIGN(Display); | 116 DISALLOW_COPY_AND_ASSIGN(Display); |
118 }; | 117 }; |
119 | 118 |
120 } // namespace egl | 119 } // namespace egl |
121 | 120 |
122 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 121 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
OLD | NEW |