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

Side by Side Diff: gpu/ipc/client/gpu_channel_host.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 | « content/renderer/render_thread_impl.cc ('k') | services/ui/public/cpp/gpu_service.h » ('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 (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 GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 using GpuChannelEstablishedCallback = 47 using GpuChannelEstablishedCallback =
48 base::Callback<void(scoped_refptr<GpuChannelHost>)>; 48 base::Callback<void(scoped_refptr<GpuChannelHost>)>;
49 49
50 class GPU_EXPORT GpuChannelEstablishFactory { 50 class GPU_EXPORT GpuChannelEstablishFactory {
51 public: 51 public:
52 virtual ~GpuChannelEstablishFactory() {} 52 virtual ~GpuChannelEstablishFactory() {}
53 53
54 virtual void EstablishGpuChannel( 54 virtual void EstablishGpuChannel(
55 const GpuChannelEstablishedCallback& callback) = 0; 55 const GpuChannelEstablishedCallback& callback) = 0;
56 virtual scoped_refptr<GpuChannelHost> EstablishGpuChannelSync() = 0; 56 virtual scoped_refptr<GpuChannelHost> EstablishGpuChannelSync() = 0;
57 virtual GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
57 }; 58 };
58 59
59 class GPU_EXPORT GpuChannelHostFactory { 60 class GPU_EXPORT GpuChannelHostFactory {
60 public: 61 public:
61 virtual ~GpuChannelHostFactory() {} 62 virtual ~GpuChannelHostFactory() {}
62 63
63 virtual bool IsMainThread() = 0; 64 virtual bool IsMainThread() = 0;
64 virtual scoped_refptr<base::SingleThreadTaskRunner> 65 virtual scoped_refptr<base::SingleThreadTaskRunner>
65 GetIOThreadTaskRunner() = 0; 66 GetIOThreadTaskRunner() = 0;
66 virtual std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 67 virtual std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 mutable base::Lock context_lock_; 283 mutable base::Lock context_lock_;
283 std::unique_ptr<IPC::SyncChannel> channel_; 284 std::unique_ptr<IPC::SyncChannel> channel_;
284 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 285 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
285 286
286 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 287 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
287 }; 288 };
288 289
289 } // namespace gpu 290 } // namespace gpu
290 291
291 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 292 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | services/ui/public/cpp/gpu_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698