| 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_SYNC_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SYNC_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SYNC_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SYNC_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 AsyncPixelTransferManagerSync : public AsyncPixelTransferManager { | 12 class AsyncPixelTransferManagerSync : public AsyncPixelTransferManager { |
| 13 public: | 13 public: |
| 14 AsyncPixelTransferManagerSync(); | 14 AsyncPixelTransferManagerSync(); |
| 15 virtual ~AsyncPixelTransferManagerSync(); | 15 virtual ~AsyncPixelTransferManagerSync(); |
| 16 | 16 |
| 17 // AsyncPixelTransferManager implementation: | 17 // AsyncPixelTransferManager implementation: |
| 18 virtual void BindCompletedAsyncTransfers() OVERRIDE; | 18 virtual void BindCompletedAsyncTransfers() OVERRIDE; |
| 19 virtual void AsyncRunWhenCompleted(base::Callback<void()> callback) OVERRIDE; |
| 19 virtual void AsyncNotifyCompletion( | 20 virtual void AsyncNotifyCompletion( |
| 20 const AsyncMemoryParams& mem_params, | 21 const AsyncMemoryParams& mem_params, |
| 21 AsyncPixelTransferCompletionObserver* observer) OVERRIDE; | 22 AsyncPixelTransferCompletionObserver* observer) OVERRIDE; |
| 22 virtual uint32 GetTextureUploadCount() OVERRIDE; | 23 virtual uint32 GetTextureUploadCount() OVERRIDE; |
| 23 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; | 24 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; |
| 24 virtual void ProcessMorePendingTransfers() OVERRIDE; | 25 virtual void ProcessMorePendingTransfers() OVERRIDE; |
| 25 virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; | 26 virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; |
| 26 | 27 |
| 27 // State shared between Managers and Delegates. | 28 // State shared between Managers and Delegates. |
| 28 struct SharedState { | 29 struct SharedState { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 40 const AsyncTexImage2DParams& define_params) OVERRIDE; | 41 const AsyncTexImage2DParams& define_params) OVERRIDE; |
| 41 | 42 |
| 42 SharedState shared_state_; | 43 SharedState shared_state_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerSync); | 45 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerSync); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace gpu | 48 } // namespace gpu |
| 48 | 49 |
| 49 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SYNC_H_ | 50 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SYNC_H_ |
| OLD | NEW |