OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_buffer/service/in_process_command_buffer.h" | 5 #include "gpu/command_buffer/service/in_process_command_buffer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 if (sync_point_order_data_) { | 456 if (sync_point_order_data_) { |
457 sync_point_order_data_->Destroy(); | 457 sync_point_order_data_->Destroy(); |
458 sync_point_order_data_ = nullptr; | 458 sync_point_order_data_ = nullptr; |
459 } | 459 } |
460 gl_share_group_ = nullptr; | 460 gl_share_group_ = nullptr; |
461 | 461 |
462 return true; | 462 return true; |
463 } | 463 } |
464 | 464 |
465 void InProcessCommandBuffer::CheckSequencedThread() { | 465 void InProcessCommandBuffer::CheckSequencedThread() { |
466 DCHECK(!sequence_checker_ || | 466 DCHECK(!sequence_checker_ || sequence_checker_->CalledOnValidSequence()); |
467 sequence_checker_->CalledOnValidSequencedThread()); | |
468 } | 467 } |
469 | 468 |
470 void InProcessCommandBuffer::OnContextLostOnGpuThread() { | 469 void InProcessCommandBuffer::OnContextLostOnGpuThread() { |
471 if (!origin_task_runner_) | 470 if (!origin_task_runner_) |
472 return OnContextLost(); // Just kidding, we're on the client thread. | 471 return OnContextLost(); // Just kidding, we're on the client thread. |
473 origin_task_runner_->PostTask( | 472 origin_task_runner_->PostTask( |
474 FROM_HERE, base::Bind(&InProcessCommandBuffer::OnContextLost, | 473 FROM_HERE, base::Bind(&InProcessCommandBuffer::OnContextLost, |
475 client_thread_weak_ptr_)); | 474 client_thread_weak_ptr_)); |
476 } | 475 } |
477 | 476 |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 framebuffer_completeness_cache_ = | 1054 framebuffer_completeness_cache_ = |
1056 new gpu::gles2::FramebufferCompletenessCache; | 1055 new gpu::gles2::FramebufferCompletenessCache; |
1057 return framebuffer_completeness_cache_; | 1056 return framebuffer_completeness_cache_; |
1058 } | 1057 } |
1059 | 1058 |
1060 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1059 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
1061 return sync_point_manager_; | 1060 return sync_point_manager_; |
1062 } | 1061 } |
1063 | 1062 |
1064 } // namespace gpu | 1063 } // namespace gpu |
OLD | NEW |