Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / gpu / command_buffer / service / async_pixel_transfer_manager_egl.h
blob0b7421666b51aaf7d6e13f83c4dfb1fd913a8118
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
3 // found in the LICENSE file.
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_EGL_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_EGL_H_
8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h"
10 #include "base/memory/ref_counted.h"
12 namespace gpu {
13 class AsyncPixelTransferDelegateEGL;
14 class AsyncPixelTransferUploadStats;
16 class AsyncPixelTransferManagerEGL : public AsyncPixelTransferManager {
17 public:
18 AsyncPixelTransferManagerEGL();
19 ~AsyncPixelTransferManagerEGL() override;
21 // AsyncPixelTransferManager implementation:
22 void BindCompletedAsyncTransfers() override;
23 void AsyncNotifyCompletion(
24 const AsyncMemoryParams& mem_params,
25 AsyncPixelTransferCompletionObserver* observer) override;
26 uint32 GetTextureUploadCount() override;
27 base::TimeDelta GetTotalTextureUploadTime() override;
28 void ProcessMorePendingTransfers() override;
29 bool NeedsProcessMorePendingTransfers() override;
30 void WaitAllAsyncTexImage2D() override;
32 // State shared between Managers and Delegates.
33 struct SharedState {
34 SharedState();
35 ~SharedState();
37 scoped_refptr<AsyncPixelTransferUploadStats> texture_upload_stats;
38 bool is_imagination;
39 bool is_qualcomm;
40 typedef std::list<base::WeakPtr<AsyncPixelTransferDelegateEGL> >
41 TransferQueue;
42 TransferQueue pending_allocations;
45 private:
46 // AsyncPixelTransferManager implementation:
47 AsyncPixelTransferDelegate* CreatePixelTransferDelegateImpl(
48 gles2::TextureRef* ref,
49 const AsyncTexImage2DParams& define_params) override;
51 SharedState shared_state_;
53 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerEGL);
56 } // namespace gpu
58 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_EGL_H_