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