| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 89 void RetireSyncPoint(uint32 sync_point) override; | 89 void RetireSyncPoint(uint32 sync_point) override; |
| 90 void SignalSyncPoint(uint32 sync_point, | 90 void SignalSyncPoint(uint32 sync_point, |
| 91 const base::Closure& callback) override; | 91 const base::Closure& callback) override; |
| 92 void SignalQuery(uint32 query, const base::Closure& callback) override; | 92 void SignalQuery(uint32 query, const base::Closure& callback) override; |
| 93 void SetSurfaceVisible(bool visible) override; | 93 void SetSurfaceVisible(bool visible) override; |
| 94 uint32 CreateStreamTexture(uint32 texture_id) override; | 94 uint32 CreateStreamTexture(uint32 texture_id) override; |
| 95 uint32 CreateStreamTextureImage(int32 image_id) override; |
| 95 void SetLock(base::Lock*) override; | 96 void SetLock(base::Lock*) override; |
| 96 bool IsGpuChannelLost() override; | 97 bool IsGpuChannelLost() override; |
| 97 | 98 |
| 98 private: | 99 private: |
| 99 EGLNativeDisplayType display_id_; | 100 EGLNativeDisplayType display_id_; |
| 100 | 101 |
| 101 bool is_initialized_; | 102 bool is_initialized_; |
| 102 bool create_offscreen_; | 103 bool create_offscreen_; |
| 103 int create_offscreen_width_; | 104 int create_offscreen_width_; |
| 104 int create_offscreen_height_; | 105 int create_offscreen_height_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 116 scoped_ptr<Config> config_; | 117 scoped_ptr<Config> config_; |
| 117 scoped_ptr<Surface> surface_; | 118 scoped_ptr<Surface> surface_; |
| 118 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 119 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(Display); | 121 DISALLOW_COPY_AND_ASSIGN(Display); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace egl | 124 } // namespace egl |
| 124 | 125 |
| 125 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 126 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
| OLD | NEW |