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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.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 (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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void DidPostSwapBuffers() override; 112 void DidPostSwapBuffers() override;
113 void DidAbortSwapBuffers() override; 113 void DidAbortSwapBuffers() override;
114 114
115 // WindowAndroidCompositor implementation. 115 // WindowAndroidCompositor implementation.
116 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; 116 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
117 void RequestCopyOfOutputOnRootLayer( 117 void RequestCopyOfOutputOnRootLayer(
118 std::unique_ptr<cc::CopyOutputRequest> request) override; 118 std::unique_ptr<cc::CopyOutputRequest> request) override;
119 void OnVSync(base::TimeTicks frame_time, 119 void OnVSync(base::TimeTicks frame_time,
120 base::TimeDelta vsync_period) override; 120 base::TimeDelta vsync_period) override;
121 void SetNeedsAnimate() override; 121 void SetNeedsAnimate() override;
122 uint32_t GetSurfaceClientId() override; 122 cc::FrameSinkId GetFrameSinkId() override;
123 123
124 void SetVisible(bool visible); 124 void SetVisible(bool visible);
125 void CreateLayerTreeHost(); 125 void CreateLayerTreeHost();
126 126
127 void HandlePendingCompositorFrameSinkRequest(); 127 void HandlePendingCompositorFrameSinkRequest();
128 128
129 #if defined(ENABLE_VULKAN) 129 #if defined(ENABLE_VULKAN)
130 void CreateVulkanOutputSurface(); 130 void CreateVulkanOutputSurface();
131 #endif 131 #endif
132 void OnGpuChannelEstablished( 132 void OnGpuChannelEstablished(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 gpu::Capabilities gpu_capabilities_; 183 gpu::Capabilities gpu_capabilities_;
184 bool needs_begin_frames_; 184 bool needs_begin_frames_;
185 base::WeakPtrFactory<CompositorImpl> weak_factory_; 185 base::WeakPtrFactory<CompositorImpl> weak_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
188 }; 188 };
189 189
190 } // namespace content 190 } // namespace content
191 191
192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698