Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1043)

Side by Side Diff: content/browser/renderer_host/context_provider_factory_impl_android.h

Issue 2691363002: Centralize FrameSinkId allocation in one place (Closed)
Patch Set: android Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 #include "cc/surfaces/frame_sink_id_allocator.h"
13 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
14 #include "gpu/command_buffer/client/shared_memory_limits.h" 15 #include "gpu/command_buffer/client/shared_memory_limits.h"
15 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 16 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
16 #include "gpu/ipc/common/surface_handle.h" 17 #include "gpu/ipc/common/surface_handle.h"
17 #include "services/ui/public/cpp/gpu/command_buffer_metrics.h" 18 #include "services/ui/public/cpp/gpu/command_buffer_metrics.h"
18 #include "ui/android/context_provider_factory.h" 19 #include "ui/android/context_provider_factory.h"
19 20
20 namespace gpu { 21 namespace gpu {
21 class GpuChannelHost; 22 class GpuChannelHost;
22 class GpuChannelEstablishFactory; 23 class GpuChannelEstablishFactory;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 scoped_refptr<cc::VulkanContextProvider> shared_vulkan_context_provider_; 99 scoped_refptr<cc::VulkanContextProvider> shared_vulkan_context_provider_;
99 100
100 bool in_handle_pending_requests_; 101 bool in_handle_pending_requests_;
101 102
102 bool in_shutdown_; 103 bool in_shutdown_;
103 104
104 base::OneShotTimer establish_gpu_channel_timeout_; 105 base::OneShotTimer establish_gpu_channel_timeout_;
105 106
106 std::unique_ptr<cc::SurfaceManager> surface_manager_; 107 std::unique_ptr<cc::SurfaceManager> surface_manager_;
107 uint32_t next_sink_id_; 108 cc::FrameSinkIdAllocator frame_sink_id_allocator_;
108 109
109 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_; 110 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl); 112 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl);
112 }; 113 };
113 114
114 } // namespace content 115 } // namespace content
115 116
116 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H _ 117 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698