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

Side by Side Diff: ui/android/context_provider_factory.h

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ 5 #ifndef UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_
6 #define UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ 6 #define UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/surfaces/frame_sink_id.h"
10 #include "ui/android/ui_android_export.h" 11 #include "ui/android/ui_android_export.h"
11 12
12 namespace cc { 13 namespace cc {
13 class ContextProvider; 14 class ContextProvider;
14 class GpuMemoryBufferManager; 15 class GpuMemoryBufferManager;
15 class VulkanContextProvider; 16 class VulkanContextProvider;
16 class SharedBitmapManager; 17 class SharedBitmapManager;
17 class SurfaceManager; 18 class SurfaceManager;
18 } 19 }
19 20
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ContextType context_type, 74 ContextType context_type,
74 gpu::SharedMemoryLimits shared_memory_limits, 75 gpu::SharedMemoryLimits shared_memory_limits,
75 gpu::gles2::ContextCreationAttribHelper attributes, 76 gpu::gles2::ContextCreationAttribHelper attributes,
76 bool support_locking, 77 bool support_locking,
77 bool automatic_flushes, 78 bool automatic_flushes,
78 cc::ContextProvider* shared_context_provider, 79 cc::ContextProvider* shared_context_provider,
79 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) = 0; 80 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) = 0;
80 81
81 virtual cc::SurfaceManager* GetSurfaceManager() = 0; 82 virtual cc::SurfaceManager* GetSurfaceManager() = 0;
82 83
83 virtual uint32_t AllocateSurfaceClientId() = 0; 84 virtual cc::FrameSinkId AllocateFrameSinkId() = 0;
84 85
85 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 86 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
86 87
87 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 88 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
88 }; 89 };
89 90
90 } // namespace ui 91 } // namespace ui
91 92
92 #endif // UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_ 93 #endif // UI_ANDROID_CONTEXT_PROVIDER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698