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

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

Issue 396483003: Separate ResizeHelper from RenderWidgetHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make dtor order more robust Created 6 years, 5 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 | « base/threading/thread_restrictions.h ('k') | content/browser/gpu/gpu_process_host.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 (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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 13 matching lines...) Expand all
24 #include "content/public/browser/gpu_data_manager.h" 24 #include "content/public/browser/gpu_data_manager.h"
25 #include "gpu/command_buffer/common/constants.h" 25 #include "gpu/command_buffer/common/constants.h"
26 #include "gpu/config/gpu_info.h" 26 #include "gpu/config/gpu_info.h"
27 #include "ipc/ipc_sender.h" 27 #include "ipc/ipc_sender.h"
28 #include "ipc/message_filter.h" 28 #include "ipc/message_filter.h"
29 #include "ui/gfx/native_widget_types.h" 29 #include "ui/gfx/native_widget_types.h"
30 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
31 #include "url/gurl.h" 31 #include "url/gurl.h"
32 32
33 struct GPUCreateCommandBufferConfig; 33 struct GPUCreateCommandBufferConfig;
34 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
35 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
36 struct GpuHostMsg_AcceleratedSurfaceRelease_Params;
37 34
38 namespace gfx { 35 namespace gfx {
39 struct GpuMemoryBufferHandle; 36 struct GpuMemoryBufferHandle;
40 } 37 }
41 38
42 namespace IPC { 39 namespace IPC {
43 struct ChannelHandle; 40 struct ChannelHandle;
44 } 41 }
45 42
46 namespace content { 43 namespace content {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void OnDestroyCommandBuffer(int32 surface_id); 175 void OnDestroyCommandBuffer(int32 surface_id);
179 void OnImageCreated(const gfx::Size size); 176 void OnImageCreated(const gfx::Size size);
180 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 177 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
181 void OnDidCreateOffscreenContext(const GURL& url); 178 void OnDidCreateOffscreenContext(const GURL& url);
182 void OnDidLoseContext(bool offscreen, 179 void OnDidLoseContext(bool offscreen,
183 gpu::error::ContextLostReason reason, 180 gpu::error::ContextLostReason reason,
184 const GURL& url); 181 const GURL& url);
185 void OnDidDestroyOffscreenContext(const GURL& url); 182 void OnDidDestroyOffscreenContext(const GURL& url);
186 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); 183 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats);
187 #if defined(OS_MACOSX) 184 #if defined(OS_MACOSX)
188 void OnAcceleratedSurfaceBuffersSwapped( 185 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message);
189 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
190 #endif 186 #endif
191 187
192 void CreateChannelCache(int32 client_id); 188 void CreateChannelCache(int32 client_id);
193 void OnDestroyChannel(int32 client_id); 189 void OnDestroyChannel(int32 client_id);
194 void OnCacheShader(int32 client_id, const std::string& key, 190 void OnCacheShader(int32 client_id, const std::string& key,
195 const std::string& shader); 191 const std::string& shader);
196 192
197 bool LaunchGpuProcess(const std::string& channel_id); 193 bool LaunchGpuProcess(const std::string& channel_id);
198 194
199 void SendOutstandingReplies(); 195 void SendOutstandingReplies();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > 277 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> >
282 SurfaceRefMap; 278 SurfaceRefMap;
283 SurfaceRefMap surface_refs_; 279 SurfaceRefMap surface_refs_;
284 280
285 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 281 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
286 }; 282 };
287 283
288 } // namespace content 284 } // namespace content
289 285
290 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 286 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698