| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 const base::Closure& callback) { | 351 const base::Closure& callback) { |
| 352 // TODO(piman) | 352 // TODO(piman) |
| 353 NOTIMPLEMENTED(); | 353 NOTIMPLEMENTED(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { | 356 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { |
| 357 // TODO(piman) | 357 // TODO(piman) |
| 358 NOTIMPLEMENTED(); | 358 NOTIMPLEMENTED(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 uint32_t CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) { | |
| 362 // TODO(piman) | |
| 363 NOTIMPLEMENTED(); | |
| 364 return 0; | |
| 365 } | |
| 366 | |
| 367 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { | 361 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { |
| 368 last_state_.error = gpu::error::kLostContext; | 362 last_state_.error = gpu::error::kLostContext; |
| 369 last_state_.context_lost_reason = | 363 last_state_.context_lost_reason = |
| 370 static_cast<gpu::error::ContextLostReason>(lost_reason); | 364 static_cast<gpu::error::ContextLostReason>(lost_reason); |
| 371 delegate_->ContextLost(); | 365 delegate_->ContextLost(); |
| 372 } | 366 } |
| 373 | 367 |
| 374 void CommandBufferClientImpl::TryUpdateState() { | 368 void CommandBufferClientImpl::TryUpdateState() { |
| 375 if (last_state_.error == gpu::error::kNoError) | 369 if (last_state_.error == gpu::error::kNoError) |
| 376 shared_state()->Read(&last_state_); | 370 shared_state()->Read(&last_state_); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 // TODO(dyen) | 427 // TODO(dyen) |
| 434 } | 428 } |
| 435 | 429 |
| 436 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken( | 430 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken( |
| 437 const gpu::SyncToken* sync_token) { | 431 const gpu::SyncToken* sync_token) { |
| 438 // All sync tokens must be flushed before being waited on. | 432 // All sync tokens must be flushed before being waited on. |
| 439 return false; | 433 return false; |
| 440 } | 434 } |
| 441 | 435 |
| 442 } // namespace gles2 | 436 } // namespace gles2 |
| OLD | NEW |