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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2701233002: gpu: Use mojom.GpuService API for memory allocation. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/gpu/gpu_child_thread.cc » ('J')
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 CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const GURL& active_url) override; 184 const GURL& active_url) override;
185 void SetChildSurface(gpu::SurfaceHandle parent, 185 void SetChildSurface(gpu::SurfaceHandle parent,
186 gpu::SurfaceHandle child) override; 186 gpu::SurfaceHandle child) override;
187 void StoreShaderToDisk(int32_t client_id, 187 void StoreShaderToDisk(int32_t client_id,
188 const std::string& key, 188 const std::string& key,
189 const std::string& shader) override; 189 const std::string& shader) override;
190 190
191 void OnChannelEstablished(int client_id, 191 void OnChannelEstablished(int client_id,
192 const EstablishChannelCallback& callback, 192 const EstablishChannelCallback& callback,
193 mojo::ScopedMessagePipeHandle channel_handle); 193 mojo::ScopedMessagePipeHandle channel_handle);
194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
194 195
195 // Message handlers. 196 // Message handlers.
196 void OnInitialized(bool result, 197 void OnInitialized(bool result,
197 const gpu::GPUInfo& gpu_info, 198 const gpu::GPUInfo& gpu_info,
198 const gpu::GpuFeatureInfo& gpu_feature_info); 199 const gpu::GpuFeatureInfo& gpu_feature_info);
199 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
200 #if defined(OS_ANDROID) 200 #if defined(OS_ANDROID)
201 void OnDestroyingVideoSurfaceAck(int surface_id); 201 void OnDestroyingVideoSurfaceAck(int surface_id);
202 #endif 202 #endif
203 void OnFieldTrialActivated(const std::string& trial_name); 203 void OnFieldTrialActivated(const std::string& trial_name);
204 204
205 void CreateChannelCache(int32_t client_id); 205 void CreateChannelCache(int32_t client_id);
206 206
207 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); 207 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences);
208 208
209 void SendOutstandingReplies(); 209 void SendOutstandingReplies();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_; 288 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
289 289
290 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 290 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
291 291
292 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 292 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
293 }; 293 };
294 294
295 } // namespace content 295 } // namespace content
296 296
297 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 297 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/gpu/gpu_child_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698