Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / gpu / command_buffer / service / async_pixel_transfer_manager_share_group.h
blob081fcc4dd07d185282ea1a1a0c1ce2e6dae3ce18
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_SHARE_GROUP_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SHARE_GROUP_H_
8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h"
10 #include "base/memory/ref_counted.h"
12 namespace gfx {
13 class GLContext;
16 namespace gpu {
17 class AsyncPixelTransferDelegateShareGroup;
18 class AsyncPixelTransferUploadStats;
20 class AsyncPixelTransferManagerShareGroup : public AsyncPixelTransferManager {
21 public:
22 explicit AsyncPixelTransferManagerShareGroup(gfx::GLContext* context);
23 ~AsyncPixelTransferManagerShareGroup() override;
25 // AsyncPixelTransferManager implementation:
26 void BindCompletedAsyncTransfers() override;
27 void AsyncNotifyCompletion(
28 const AsyncMemoryParams& mem_params,
29 AsyncPixelTransferCompletionObserver* observer) override;
30 uint32 GetTextureUploadCount() override;
31 base::TimeDelta GetTotalTextureUploadTime() override;
32 void ProcessMorePendingTransfers() override;
33 bool NeedsProcessMorePendingTransfers() override;
34 void WaitAllAsyncTexImage2D() override;
36 // State shared between Managers and Delegates.
37 struct SharedState {
38 SharedState();
39 ~SharedState();
41 scoped_refptr<AsyncPixelTransferUploadStats> texture_upload_stats;
42 typedef std::list<base::WeakPtr<AsyncPixelTransferDelegateShareGroup> >
43 TransferQueue;
44 TransferQueue pending_allocations;
47 private:
48 // AsyncPixelTransferManager implementation:
49 AsyncPixelTransferDelegate* CreatePixelTransferDelegateImpl(
50 gles2::TextureRef* ref,
51 const AsyncTexImage2DParams& define_params) override;
53 SharedState shared_state_;
55 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerShareGroup);
58 } // namespace gpu
60 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_SHARE_GROUP_H_