| 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/async_pixel_transfer_manager_stub.h" | 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" | 7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" |
| 8 | 8 |
| 9 namespace gpu { | 9 namespace gpu { |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {} | 51 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {} |
| 52 | 52 |
| 53 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {} | 53 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {} |
| 54 | 54 |
| 55 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {} | 55 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {} |
| 56 | 56 |
| 57 void AsyncPixelTransferManagerStub::BindCompletedAsyncTransfers() { | 57 void AsyncPixelTransferManagerStub::BindCompletedAsyncTransfers() { |
| 58 } | 58 } |
| 59 | 59 |
| 60 void AsyncPixelTransferManagerStub::AsyncRunWhenCompleted( |
| 61 base::Callback<void()> callback) { |
| 62 callback.Run(); |
| 63 } |
| 64 |
| 60 void AsyncPixelTransferManagerStub::AsyncNotifyCompletion( | 65 void AsyncPixelTransferManagerStub::AsyncNotifyCompletion( |
| 61 const AsyncMemoryParams& mem_params, | 66 const AsyncMemoryParams& mem_params, |
| 62 AsyncPixelTransferCompletionObserver* observer) { | 67 AsyncPixelTransferCompletionObserver* observer) { |
| 63 observer->DidComplete(mem_params); | 68 observer->DidComplete(mem_params); |
| 64 } | 69 } |
| 65 | 70 |
| 66 uint32 AsyncPixelTransferManagerStub::GetTextureUploadCount() { | 71 uint32 AsyncPixelTransferManagerStub::GetTextureUploadCount() { |
| 67 return 0; | 72 return 0; |
| 68 } | 73 } |
| 69 | 74 |
| 70 base::TimeDelta AsyncPixelTransferManagerStub::GetTotalTextureUploadTime() { | 75 base::TimeDelta AsyncPixelTransferManagerStub::GetTotalTextureUploadTime() { |
| 71 return base::TimeDelta(); | 76 return base::TimeDelta(); |
| 72 } | 77 } |
| 73 | 78 |
| 74 void AsyncPixelTransferManagerStub::ProcessMorePendingTransfers() { | 79 void AsyncPixelTransferManagerStub::ProcessMorePendingTransfers() { |
| 75 } | 80 } |
| 76 | 81 |
| 77 bool AsyncPixelTransferManagerStub::NeedsProcessMorePendingTransfers() { | 82 bool AsyncPixelTransferManagerStub::NeedsProcessMorePendingTransfers() { |
| 78 return false; | 83 return false; |
| 79 } | 84 } |
| 80 | 85 |
| 81 AsyncPixelTransferDelegate* | 86 AsyncPixelTransferDelegate* |
| 82 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( | 87 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( |
| 83 gles2::TextureRef* ref, | 88 gles2::TextureRef* ref, |
| 84 const AsyncTexImage2DParams& define_params) { | 89 const AsyncTexImage2DParams& define_params) { |
| 85 return new AsyncPixelTransferDelegateStub(); | 90 return new AsyncPixelTransferDelegateStub(); |
| 86 } | 91 } |
| 87 | 92 |
| 88 } // namespace gpu | 93 } // namespace gpu |
| OLD | NEW |