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

Side by Side Diff: services/ui/public/cpp/gpu_service.h

Issue 2247173002: gpu: Use GpuMemoryBufferManager from GpuService when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-gpu-memory-buffer-manager
Patch Set: Created 4 years, 4 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
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.h ('k') | services/ui/public/cpp/gpu_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_
6 #define SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 // The GpuService has to be initialized in the main thread before establishing 36 // The GpuService has to be initialized in the main thread before establishing
37 // the gpu channel. 37 // the gpu channel.
38 static std::unique_ptr<GpuService> Initialize(shell::Connector* connector); 38 static std::unique_ptr<GpuService> Initialize(shell::Connector* connector);
39 39
40 // gpu::GpuChannelEstablishFactory: 40 // gpu::GpuChannelEstablishFactory:
41 void EstablishGpuChannel( 41 void EstablishGpuChannel(
42 const gpu::GpuChannelEstablishedCallback& callback) override; 42 const gpu::GpuChannelEstablishedCallback& callback) override;
43 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync() override; 43 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync() override;
44 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
44 45
45 private: 46 private:
46 friend struct base::DefaultSingletonTraits<GpuService>; 47 friend struct base::DefaultSingletonTraits<GpuService>;
47 48
48 explicit GpuService(shell::Connector* connector); 49 explicit GpuService(shell::Connector* connector);
49 50
50 scoped_refptr<gpu::GpuChannelHost> GetGpuChannelLocked(); 51 scoped_refptr<gpu::GpuChannelHost> GetGpuChannelLocked();
51 void EstablishGpuChannelOnMainThread(); 52 void EstablishGpuChannelOnMainThread();
52 void EstablishGpuChannelOnMainThreadSyncLocked(); 53 void EstablishGpuChannelOnMainThreadSyncLocked();
53 void EstablishGpuChannelOnMainThreadDone( 54 void EstablishGpuChannelOnMainThreadDone(
(...skipping 21 matching lines...) Expand all
75 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; 76 scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
76 std::vector<gpu::GpuChannelEstablishedCallback> establish_callbacks_; 77 std::vector<gpu::GpuChannelEstablishedCallback> establish_callbacks_;
77 base::ConditionVariable establishing_condition_; 78 base::ConditionVariable establishing_condition_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(GpuService); 80 DISALLOW_COPY_AND_ASSIGN(GpuService);
80 }; 81 };
81 82
82 } // namespace ui 83 } // namespace ui
83 84
84 #endif // SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_ 85 #endif // SERVICES_UI_PUBLIC_CPP_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.h ('k') | services/ui/public/cpp/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698