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 #include "gpu/command_buffer/service/async_pixel_transfer_delegate_stub.h" | |
6 | |
7 namespace gpu { | |
8 | |
9 namespace { | |
10 | |
11 class AsyncPixelTransferStateImpl : public AsyncPixelTransferState { | |
12 public: | |
13 AsyncPixelTransferStateImpl() {} | |
14 | |
15 // Implement AsyncPixelTransferState: | |
16 virtual bool TransferIsInProgress() OVERRIDE { | |
17 return false; | |
18 } | |
19 | |
20 private: | |
21 virtual ~AsyncPixelTransferStateImpl() {} | |
22 }; | |
23 | |
24 } // namespace | |
25 | |
26 AsyncPixelTransferDelegateStub::AsyncPixelTransferDelegateStub() {} | |
27 | |
28 AsyncPixelTransferDelegateStub::~AsyncPixelTransferDelegateStub() {} | |
29 | |
30 AsyncPixelTransferState* AsyncPixelTransferDelegateStub:: | |
31 CreatePixelTransferState(GLuint texture_id, | |
32 const AsyncTexImage2DParams& define_params) { | |
33 return new AsyncPixelTransferStateImpl; | |
34 } | |
35 | |
36 void AsyncPixelTransferDelegateStub::BindCompletedAsyncTransfers() { | |
37 } | |
38 | |
39 void AsyncPixelTransferDelegateStub::AsyncNotifyCompletion( | |
40 const AsyncMemoryParams& mem_params, | |
41 const CompletionCallback& callback) { | |
42 callback.Run(mem_params); | |
43 } | |
44 | |
45 void AsyncPixelTransferDelegateStub::AsyncTexImage2D( | |
46 AsyncPixelTransferState* transfer_state, | |
47 const AsyncTexImage2DParams& tex_params, | |
48 const AsyncMemoryParams& mem_params, | |
49 const base::Closure& bind_callback) { | |
50 bind_callback.Run(); | |
51 } | |
52 | |
53 void AsyncPixelTransferDelegateStub::AsyncTexSubImage2D( | |
54 AsyncPixelTransferState* transfer_state, | |
55 const AsyncTexSubImage2DParams& tex_params, | |
56 const AsyncMemoryParams& mem_params) { | |
57 } | |
58 | |
59 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion( | |
60 AsyncPixelTransferState* state) { | |
61 } | |
62 | |
63 uint32 AsyncPixelTransferDelegateStub::GetTextureUploadCount() { | |
64 return 0; | |
65 } | |
66 | |
67 base::TimeDelta AsyncPixelTransferDelegateStub::GetTotalTextureUploadTime() { | |
68 return base::TimeDelta(); | |
69 } | |
70 | |
71 void AsyncPixelTransferDelegateStub::ProcessMorePendingTransfers() { | |
72 } | |
73 | |
74 bool AsyncPixelTransferDelegateStub::NeedsProcessMorePendingTransfers() { | |
75 return false; | |
76 } | |
77 | |
78 } // namespace gpu | |
79 | |
OLD | NEW |