OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_STUB_H_ | |
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_STUB_H_ | |
7 | |
8 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" | |
9 | |
10 namespace gpu { | |
11 | |
12 class AsyncPixelTransferDelegateStub : public AsyncPixelTransferDelegate { | |
13 public: | |
14 AsyncPixelTransferDelegateStub(); | |
15 virtual ~AsyncPixelTransferDelegateStub(); | |
16 | |
17 // Implement AsyncPixelTransferDelegate: | |
18 virtual AsyncPixelTransferState* CreatePixelTransferState( | |
19 GLuint texture_id, | |
20 const AsyncTexImage2DParams& define_params) OVERRIDE; | |
21 virtual void BindCompletedAsyncTransfers() OVERRIDE; | |
22 virtual void AsyncNotifyCompletion( | |
23 const AsyncMemoryParams& mem_params, | |
24 const CompletionCallback& callback) OVERRIDE; | |
25 virtual void AsyncTexImage2D( | |
26 AsyncPixelTransferState* state, | |
27 const AsyncTexImage2DParams& tex_params, | |
28 const AsyncMemoryParams& mem_params, | |
29 const base::Closure& bind_callback) OVERRIDE; | |
30 virtual void AsyncTexSubImage2D( | |
31 AsyncPixelTransferState* transfer_state, | |
32 const AsyncTexSubImage2DParams& tex_params, | |
33 const AsyncMemoryParams& mem_params) OVERRIDE; | |
34 virtual void WaitForTransferCompletion( | |
35 AsyncPixelTransferState* state) OVERRIDE; | |
36 virtual uint32 GetTextureUploadCount() OVERRIDE; | |
37 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; | |
38 virtual void ProcessMorePendingTransfers() OVERRIDE; | |
39 virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; | |
40 | |
41 private: | |
42 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); | |
43 }; | |
44 | |
45 } // namespace gpu | |
46 | |
47 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_STUB_H_ | |
OLD | NEW |