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 |
11 class AsyncPixelTransferDelegateStub : public AsyncPixelTransferDelegate { | 11 class AsyncPixelTransferDelegateStub : public AsyncPixelTransferDelegate { |
12 public: | 12 public: |
13 AsyncPixelTransferDelegateStub(); | 13 AsyncPixelTransferDelegateStub(); |
14 virtual ~AsyncPixelTransferDelegateStub(); | 14 ~AsyncPixelTransferDelegateStub() override; |
15 | 15 |
16 // Implement AsyncPixelTransferDelegate: | 16 // Implement AsyncPixelTransferDelegate: |
17 virtual void AsyncTexImage2D( | 17 void AsyncTexImage2D(const AsyncTexImage2DParams& tex_params, |
18 const AsyncTexImage2DParams& tex_params, | 18 const AsyncMemoryParams& mem_params, |
19 const AsyncMemoryParams& mem_params, | 19 const base::Closure& bind_callback) override; |
20 const base::Closure& bind_callback) override; | 20 void AsyncTexSubImage2D(const AsyncTexSubImage2DParams& tex_params, |
21 virtual void AsyncTexSubImage2D( | 21 const AsyncMemoryParams& mem_params) override; |
22 const AsyncTexSubImage2DParams& tex_params, | 22 bool TransferIsInProgress() override; |
23 const AsyncMemoryParams& mem_params) override; | 23 void WaitForTransferCompletion() override; |
24 virtual bool TransferIsInProgress() override; | |
25 virtual void WaitForTransferCompletion() override; | |
26 | 24 |
27 private: | 25 private: |
28 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); | 26 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); |
29 }; | 27 }; |
30 | 28 |
31 AsyncPixelTransferDelegateStub::AsyncPixelTransferDelegateStub() {} | 29 AsyncPixelTransferDelegateStub::AsyncPixelTransferDelegateStub() {} |
32 | 30 |
33 AsyncPixelTransferDelegateStub::~AsyncPixelTransferDelegateStub() {} | 31 AsyncPixelTransferDelegateStub::~AsyncPixelTransferDelegateStub() {} |
34 | 32 |
35 void AsyncPixelTransferDelegateStub::AsyncTexImage2D( | 33 void AsyncPixelTransferDelegateStub::AsyncTexImage2D( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 80 } |
83 | 81 |
84 AsyncPixelTransferDelegate* | 82 AsyncPixelTransferDelegate* |
85 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( | 83 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( |
86 gles2::TextureRef* ref, | 84 gles2::TextureRef* ref, |
87 const AsyncTexImage2DParams& define_params) { | 85 const AsyncTexImage2DParams& define_params) { |
88 return new AsyncPixelTransferDelegateStub(); | 86 return new AsyncPixelTransferDelegateStub(); |
89 } | 87 } |
90 | 88 |
91 } // namespace gpu | 89 } // namespace gpu |
OLD | NEW |