| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/gles2/command_buffer_client_impl.h" | 5 #include "mojo/gles2/command_buffer_client_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 const base::Closure& callback) { | 234 const base::Closure& callback) { |
| 235 // TODO(piman) | 235 // TODO(piman) |
| 236 NOTIMPLEMENTED(); | 236 NOTIMPLEMENTED(); |
| 237 } | 237 } |
| 238 | 238 |
| 239 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { | 239 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { |
| 240 // TODO(piman) | 240 // TODO(piman) |
| 241 NOTIMPLEMENTED(); | 241 NOTIMPLEMENTED(); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void CommandBufferClientImpl::Echo(const base::Closure& callback) { | |
| 245 command_buffer_->Echo(callback); | |
| 246 } | |
| 247 | |
| 248 uint32 CommandBufferClientImpl::CreateStreamTexture(uint32 texture_id) { | 244 uint32 CommandBufferClientImpl::CreateStreamTexture(uint32 texture_id) { |
| 249 // TODO(piman) | 245 // TODO(piman) |
| 250 NOTIMPLEMENTED(); | 246 NOTIMPLEMENTED(); |
| 251 return 0; | 247 return 0; |
| 252 } | 248 } |
| 253 | 249 |
| 254 void CommandBufferClientImpl::DidDestroy() { | 250 void CommandBufferClientImpl::DidDestroy() { |
| 255 LostContext(gpu::error::kUnknown); | 251 LostContext(gpu::error::kUnknown); |
| 256 } | 252 } |
| 257 | 253 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 281 DidDestroy(); | 277 DidDestroy(); |
| 282 return; | 278 return; |
| 283 } | 279 } |
| 284 | 280 |
| 285 if (state->generation - last_state_.generation < 0x80000000U) | 281 if (state->generation - last_state_.generation < 0x80000000U) |
| 286 last_state_ = state.To<State>(); | 282 last_state_ = state.To<State>(); |
| 287 } | 283 } |
| 288 | 284 |
| 289 } // namespace gles2 | 285 } // namespace gles2 |
| 290 } // namespace mojo | 286 } // namespace mojo |
| OLD | NEW |