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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 int32_t CreateGpuMemoryBufferImage(size_t width, | 87 int32_t CreateGpuMemoryBufferImage(size_t width, |
88 size_t height, | 88 size_t height, |
89 unsigned internalformat, | 89 unsigned internalformat, |
90 unsigned usage) override; | 90 unsigned usage) override; |
91 uint32 InsertSyncPoint() override; | 91 uint32 InsertSyncPoint() override; |
92 uint32 InsertFutureSyncPoint() override; | 92 uint32 InsertFutureSyncPoint() override; |
93 void RetireSyncPoint(uint32 sync_point) override; | 93 void RetireSyncPoint(uint32 sync_point) override; |
94 void SignalSyncPoint(uint32 sync_point, | 94 void SignalSyncPoint(uint32 sync_point, |
95 const base::Closure& callback) override; | 95 const base::Closure& callback) override; |
96 void SignalQuery(uint32 query, const base::Closure& callback) override; | 96 void SignalQuery(uint32 query, const base::Closure& callback) override; |
97 void SetSurfaceVisible(bool visible) override; | |
98 void SetLock(base::Lock*) override; | 97 void SetLock(base::Lock*) override; |
99 bool IsGpuChannelLost() override; | 98 bool IsGpuChannelLost() override; |
100 gpu::CommandBufferNamespace GetNamespaceID() const override; | 99 gpu::CommandBufferNamespace GetNamespaceID() const override; |
101 uint64_t GetCommandBufferID() const override; | 100 uint64_t GetCommandBufferID() const override; |
102 uint64_t GenerateFenceSyncRelease() override; | 101 uint64_t GenerateFenceSyncRelease() override; |
103 bool IsFenceSyncRelease(uint64_t release) override; | 102 bool IsFenceSyncRelease(uint64_t release) override; |
104 bool IsFenceSyncFlushed(uint64_t release) override; | 103 bool IsFenceSyncFlushed(uint64_t release) override; |
105 bool IsFenceSyncFlushReceived(uint64_t release) override; | 104 bool IsFenceSyncFlushReceived(uint64_t release) override; |
106 void SignalSyncToken(const gpu::SyncToken& sync_token, | 105 void SignalSyncToken(const gpu::SyncToken& sync_token, |
107 const base::Closure& callback) override; | 106 const base::Closure& callback) override; |
(...skipping 29 matching lines...) Expand all Loading... |
137 scoped_ptr<Config> config_; | 136 scoped_ptr<Config> config_; |
138 scoped_ptr<Surface> surface_; | 137 scoped_ptr<Surface> surface_; |
139 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 138 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
140 | 139 |
141 DISALLOW_COPY_AND_ASSIGN(Display); | 140 DISALLOW_COPY_AND_ASSIGN(Display); |
142 }; | 141 }; |
143 | 142 |
144 } // namespace egl | 143 } // namespace egl |
145 | 144 |
146 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 145 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
OLD | NEW |