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

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

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit Created 4 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void OnVSync(base::TimeTicks timebase, 57 virtual void OnVSync(base::TimeTicks timebase,
58 base::TimeDelta interval) = 0; 58 base::TimeDelta interval) = 0;
59 }; 59 };
60 60
61 CompositorImpl(CompositorClient* client, gfx::NativeWindow root_window); 61 CompositorImpl(CompositorClient* client, gfx::NativeWindow root_window);
62 ~CompositorImpl() override; 62 ~CompositorImpl() override;
63 63
64 static bool IsInitialized(); 64 static bool IsInitialized();
65 65
66 static cc::SurfaceManager* GetSurfaceManager(); 66 static cc::SurfaceManager* GetSurfaceManager();
67 static std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); 67 static uint32_t AllocateSurfaceClientId();
68 68
69 static scoped_refptr<cc::VulkanInProcessContextProvider> 69 static scoped_refptr<cc::VulkanInProcessContextProvider>
70 SharedVulkanContextProviderAndroid(); 70 SharedVulkanContextProviderAndroid();
71 71
72 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities); 72 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities);
73 73
74 void AddObserver(VSyncObserver* observer); 74 void AddObserver(VSyncObserver* observer);
75 void RemoveObserver(VSyncObserver* observer); 75 void RemoveObserver(VSyncObserver* observer);
76 void OnNeedsBeginFramesChange(bool needs_begin_frames); 76 void OnNeedsBeginFramesChange(bool needs_begin_frames);
77 77
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 gpu::Capabilities gpu_capabilities_; 171 gpu::Capabilities gpu_capabilities_;
172 bool needs_begin_frames_; 172 bool needs_begin_frames_;
173 base::WeakPtrFactory<CompositorImpl> weak_factory_; 173 base::WeakPtrFactory<CompositorImpl> weak_factory_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
176 }; 176 };
177 177
178 } // namespace content 178 } // namespace content
179 179
180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698