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