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

Side by Side Diff: chrome/browser/android/blimp/chrome_compositor_dependencies.cc

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 #include "chrome/browser/android/blimp/chrome_compositor_dependencies.h" 5 #include "chrome/browser/android/blimp/chrome_compositor_dependencies.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "cc/output/context_provider.h" 9 #include "cc/output/context_provider.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 gpu::GpuMemoryBufferManager* 59 gpu::GpuMemoryBufferManager*
60 ChromeCompositorDependencies::GetGpuMemoryBufferManager() { 60 ChromeCompositorDependencies::GetGpuMemoryBufferManager() {
61 return context_provider_factory_->GetGpuMemoryBufferManager(); 61 return context_provider_factory_->GetGpuMemoryBufferManager();
62 } 62 }
63 63
64 cc::SurfaceManager* ChromeCompositorDependencies::GetSurfaceManager() { 64 cc::SurfaceManager* ChromeCompositorDependencies::GetSurfaceManager() {
65 return context_provider_factory_->GetSurfaceManager(); 65 return context_provider_factory_->GetSurfaceManager();
66 } 66 }
67 67
68 uint32_t ChromeCompositorDependencies::AllocateSurfaceClientId() { 68 cc::FrameSinkId ChromeCompositorDependencies::AllocateFrameSinkId() {
69 return context_provider_factory_->AllocateSurfaceClientId(); 69 return context_provider_factory_->AllocateFrameSinkId();
70 } 70 }
71 71
72 void ChromeCompositorDependencies::GetContextProviders( 72 void ChromeCompositorDependencies::GetContextProviders(
73 const ContextProviderCallback& callback) { 73 const ContextProviderCallback& callback) {
74 context_provider_factory_->RequestGpuChannelHost( 74 context_provider_factory_->RequestGpuChannelHost(
75 base::Bind(&ChromeCompositorDependencies::OnGpuChannelEstablished, 75 base::Bind(&ChromeCompositorDependencies::OnGpuChannelEstablished,
76 weak_factory_.GetWeakPtr(), callback)); 76 weak_factory_.GetWeakPtr(), callback));
77 } 77 }
78 78
79 void ChromeCompositorDependencies::OnGpuChannelEstablished( 79 void ChromeCompositorDependencies::OnGpuChannelEstablished(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ui::ContextProviderFactory::ContextType:: 122 ui::ContextProviderFactory::ContextType::
123 BLIMP_RENDER_COMPOSITOR_CONTEXT, 123 BLIMP_RENDER_COMPOSITOR_CONTEXT,
124 gpu::SharedMemoryLimits::ForMailboxContext(), 124 gpu::SharedMemoryLimits::ForMailboxContext(),
125 GetOffscreenContextCreationAttributes(), 125 GetOffscreenContextCreationAttributes(),
126 false /* support_locking */, false /* automatic_flushes */, 126 false /* support_locking */, false /* automatic_flushes */,
127 shared_context, std::move(gpu_channel_host)); 127 shared_context, std::move(gpu_channel_host));
128 } 128 }
129 129
130 callback.Run(compositor_context_provider, shared_main_thread_worker_context_); 130 callback.Run(compositor_context_provider, shared_main_thread_worker_context_);
131 } 131 }
OLDNEW
« no previous file with comments | « chrome/browser/android/blimp/chrome_compositor_dependencies.h ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698