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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 1139483002: Remove GpuChannelHostFactory::GetMainLoop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int32 put_offset; 73 int32 put_offset;
74 unsigned int flush_count; 74 unsigned int flush_count;
75 std::vector<ui::LatencyInfo> latency_info; 75 std::vector<ui::LatencyInfo> latency_info;
76 }; 76 };
77 77
78 class CONTENT_EXPORT GpuChannelHostFactory { 78 class CONTENT_EXPORT GpuChannelHostFactory {
79 public: 79 public:
80 virtual ~GpuChannelHostFactory() {} 80 virtual ~GpuChannelHostFactory() {}
81 81
82 virtual bool IsMainThread() = 0; 82 virtual bool IsMainThread() = 0;
83 virtual base::MessageLoop* GetMainLoop() = 0;
84 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() = 0; 83 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() = 0;
85 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) = 0; 84 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) = 0;
86 virtual CreateCommandBufferResult CreateViewCommandBuffer( 85 virtual CreateCommandBufferResult CreateViewCommandBuffer(
87 int32 surface_id, 86 int32 surface_id,
88 const GPUCreateCommandBufferConfig& init_params, 87 const GPUCreateCommandBufferConfig& init_params,
89 int32 route_id) = 0; 88 int32 route_id) = 0;
90 }; 89 };
91 90
92 // Encapsulates an IPC channel between the client and one GPU process. 91 // Encapsulates an IPC channel between the client and one GPU process.
93 // On the GPU process side there's a corresponding GpuChannel. 92 // On the GPU process side there's a corresponding GpuChannel.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; 269 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap;
271 ProxyMap proxies_; 270 ProxyMap proxies_;
272 ProxyFlushInfo flush_info_; 271 ProxyFlushInfo flush_info_;
273 272
274 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 273 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
275 }; 274 };
276 275
277 } // namespace content 276 } // namespace content
278 277
279 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 278 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698