OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #include "gpu/gles2_conform_support/egl/context.h" | 5 #include "gpu/gles2_conform_support/egl/context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "gpu/command_buffer/client/gles2_implementation.h" | 10 #include "gpu/command_buffer/client/gles2_implementation.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 174 } |
175 | 175 |
176 int32_t Context::CreateGpuMemoryBufferImage(size_t width, | 176 int32_t Context::CreateGpuMemoryBufferImage(size_t width, |
177 size_t height, | 177 size_t height, |
178 unsigned internalformat, | 178 unsigned internalformat, |
179 unsigned usage) { | 179 unsigned usage) { |
180 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
181 return -1; | 181 return -1; |
182 } | 182 } |
183 | 183 |
184 int32_t Context::GetImageGpuMemoryBufferId(unsigned image_id) { | |
185 NOTIMPLEMENTED(); | |
186 return -1; | |
187 } | |
188 | |
189 void Context::SignalQuery(uint32_t query, const base::Closure& callback) { | 184 void Context::SignalQuery(uint32_t query, const base::Closure& callback) { |
190 NOTIMPLEMENTED(); | 185 NOTIMPLEMENTED(); |
191 } | 186 } |
192 | 187 |
193 void Context::SetLock(base::Lock*) { | 188 void Context::SetLock(base::Lock*) { |
194 NOTIMPLEMENTED(); | 189 NOTIMPLEMENTED(); |
195 } | 190 } |
196 | 191 |
197 void Context::EnsureWorkVisible() { | 192 void Context::EnsureWorkVisible() { |
198 // This is only relevant for out-of-process command buffers. | 193 // This is only relevant for out-of-process command buffers. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 return false; | 388 return false; |
394 if (!gl_context_->MakeCurrent(gl_surface)) { | 389 if (!gl_context_->MakeCurrent(gl_surface)) { |
395 MarkServiceContextLost(); | 390 MarkServiceContextLost(); |
396 return false; | 391 return false; |
397 } | 392 } |
398 client_gl_context_->Flush(); | 393 client_gl_context_->Flush(); |
399 return true; | 394 return true; |
400 } | 395 } |
401 | 396 |
402 } // namespace egl | 397 } // namespace egl |
OLD | NEW |