Index: gpu/command_buffer/service/async_pixel_transfer_delegate_egl.h |
diff --git a/gpu/command_buffer/service/async_pixel_transfer_delegate_egl.h b/gpu/command_buffer/service/async_pixel_transfer_delegate_egl.h |
deleted file mode 100644 |
index 67cd97153591fd754f5ca009ace0878dd99cc1a2..0000000000000000000000000000000000000000 |
--- a/gpu/command_buffer/service/async_pixel_transfer_delegate_egl.h |
+++ /dev/null |
@@ -1,77 +0,0 @@ |
-// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_EGL_H_ |
-#define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_EGL_H_ |
- |
-#include <list> |
- |
-#include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" |
- |
-namespace gpu { |
-class ScopedSafeSharedMemory; |
- |
-// Class which handles async pixel transfers using EGLImageKHR and another |
-// upload thread |
-class AsyncPixelTransferDelegateEGL |
- : public AsyncPixelTransferDelegate, |
- public base::SupportsWeakPtr<AsyncPixelTransferDelegateEGL> { |
- public: |
- AsyncPixelTransferDelegateEGL(); |
- virtual ~AsyncPixelTransferDelegateEGL(); |
- |
- // Implement AsyncPixelTransferDelegate: |
- virtual AsyncPixelTransferState* CreatePixelTransferState( |
- GLuint texture_id, |
- const AsyncTexImage2DParams& define_params) OVERRIDE; |
- virtual void BindCompletedAsyncTransfers() OVERRIDE; |
- virtual void AsyncNotifyCompletion( |
- const AsyncMemoryParams& mem_params, |
- const CompletionCallback& callback) OVERRIDE; |
- virtual void AsyncTexImage2D( |
- AsyncPixelTransferState* state, |
- const AsyncTexImage2DParams& tex_params, |
- const AsyncMemoryParams& mem_params, |
- const base::Closure& bind_callback) OVERRIDE; |
- virtual void AsyncTexSubImage2D( |
- AsyncPixelTransferState* state, |
- const AsyncTexSubImage2DParams& tex_params, |
- const AsyncMemoryParams& mem_params) OVERRIDE; |
- virtual void WaitForTransferCompletion( |
- AsyncPixelTransferState* state) OVERRIDE; |
- virtual uint32 GetTextureUploadCount() OVERRIDE; |
- virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; |
- virtual void ProcessMorePendingTransfers() OVERRIDE; |
- virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; |
- |
- private: |
- static void PerformNotifyCompletion( |
- AsyncMemoryParams mem_params, |
- ScopedSafeSharedMemory* safe_shared_memory, |
- const CompletionCallback& callback); |
- |
- // Returns true if a work-around was used. |
- bool WorkAroundAsyncTexImage2D( |
- AsyncPixelTransferState* state, |
- const AsyncTexImage2DParams& tex_params, |
- const AsyncMemoryParams& mem_params, |
- const base::Closure& bind_callback); |
- bool WorkAroundAsyncTexSubImage2D( |
- AsyncPixelTransferState* state, |
- const AsyncTexSubImage2DParams& tex_params, |
- const AsyncMemoryParams& mem_params); |
- |
- typedef std::list<base::WeakPtr<AsyncPixelTransferState> > TransferQueue; |
- TransferQueue pending_allocations_; |
- |
- scoped_refptr<AsyncPixelTransferUploadStats> texture_upload_stats_; |
- bool is_imagination_; |
- bool is_qualcomm_; |
- |
- DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateEGL); |
-}; |
- |
-} // namespace gpu |
- |
-#endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_DELEGATE_EGL_H_ |