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 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ |
7 | 7 |
8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h" | 8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
11 | 11 |
12 class AsyncPixelTransferManagerStub : public AsyncPixelTransferManager { | 12 class AsyncPixelTransferManagerStub : public AsyncPixelTransferManager { |
13 public: | 13 public: |
14 AsyncPixelTransferManagerStub(); | 14 AsyncPixelTransferManagerStub(); |
15 virtual ~AsyncPixelTransferManagerStub(); | 15 virtual ~AsyncPixelTransferManagerStub(); |
16 | 16 |
17 // AsyncPixelTransferManager implementation: | 17 // AsyncPixelTransferManager implementation: |
18 virtual void BindCompletedAsyncTransfers() OVERRIDE; | 18 virtual void BindCompletedAsyncTransfers() override; |
19 virtual void AsyncNotifyCompletion( | 19 virtual void AsyncNotifyCompletion( |
20 const AsyncMemoryParams& mem_params, | 20 const AsyncMemoryParams& mem_params, |
21 AsyncPixelTransferCompletionObserver* observer) OVERRIDE; | 21 AsyncPixelTransferCompletionObserver* observer) override; |
22 virtual uint32 GetTextureUploadCount() OVERRIDE; | 22 virtual uint32 GetTextureUploadCount() override; |
23 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; | 23 virtual base::TimeDelta GetTotalTextureUploadTime() override; |
24 virtual void ProcessMorePendingTransfers() OVERRIDE; | 24 virtual void ProcessMorePendingTransfers() override; |
25 virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; | 25 virtual bool NeedsProcessMorePendingTransfers() override; |
26 virtual void WaitAllAsyncTexImage2D() OVERRIDE; | 26 virtual void WaitAllAsyncTexImage2D() override; |
27 | 27 |
28 private: | 28 private: |
29 // AsyncPixelTransferManager implementation: | 29 // AsyncPixelTransferManager implementation: |
30 virtual AsyncPixelTransferDelegate* CreatePixelTransferDelegateImpl( | 30 virtual AsyncPixelTransferDelegate* CreatePixelTransferDelegateImpl( |
31 gles2::TextureRef* ref, | 31 gles2::TextureRef* ref, |
32 const AsyncTexImage2DParams& define_params) OVERRIDE; | 32 const AsyncTexImage2DParams& define_params) override; |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerStub); | 34 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerStub); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace gpu | 37 } // namespace gpu |
38 | 38 |
39 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ | 39 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_STUB_H_ |
OLD | NEW |