| 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 |
| 184 void Context::SignalQuery(uint32_t query, const base::Closure& callback) { | 189 void Context::SignalQuery(uint32_t query, const base::Closure& callback) { |
| 185 NOTIMPLEMENTED(); | 190 NOTIMPLEMENTED(); |
| 186 } | 191 } |
| 187 | 192 |
| 188 void Context::SetLock(base::Lock*) { | 193 void Context::SetLock(base::Lock*) { |
| 189 NOTIMPLEMENTED(); | 194 NOTIMPLEMENTED(); |
| 190 } | 195 } |
| 191 | 196 |
| 192 void Context::EnsureWorkVisible() { | 197 void Context::EnsureWorkVisible() { |
| 193 // This is only relevant for out-of-process command buffers. | 198 // This is only relevant for out-of-process command buffers. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 return false; | 391 return false; |
| 387 if (!gl_context_->MakeCurrent(gl_surface)) { | 392 if (!gl_context_->MakeCurrent(gl_surface)) { |
| 388 MarkServiceContextLost(); | 393 MarkServiceContextLost(); |
| 389 return false; | 394 return false; |
| 390 } | 395 } |
| 391 client_gl_context_->Flush(); | 396 client_gl_context_->Flush(); |
| 392 return true; | 397 return true; |
| 393 } | 398 } |
| 394 | 399 |
| 395 } // namespace egl | 400 } // namespace egl |
| OLD | NEW |