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

Side by Side Diff: chrome/browser/gpu_process_host.h

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const GPUInfo& gpu_info); 95 const GPUInfo& gpu_info);
96 void OnSynchronizeReply(); 96 void OnSynchronizeReply();
97 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); 97 void OnGraphicsInfoCollected(const GPUInfo& gpu_info);
98 #if defined(OS_LINUX) 98 #if defined(OS_LINUX)
99 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); 99 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg);
100 #elif defined(OS_MACOSX) 100 #elif defined(OS_MACOSX)
101 void OnAcceleratedSurfaceSetIOSurface( 101 void OnAcceleratedSurfaceSetIOSurface(
102 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); 102 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params);
103 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, 103 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id,
104 int32 render_view_id, 104 int32 render_view_id,
105 gfx::PluginWindowHandle window); 105 gfx::PluginWindowHandle window,
106 uint64 surface_id);
106 #endif 107 #endif
107 108
108 void ReplyToRenderer(const IPC::ChannelHandle& channel, 109 void ReplyToRenderer(const IPC::ChannelHandle& channel,
109 const GPUInfo& gpu_info, 110 const GPUInfo& gpu_info,
110 ResourceMessageFilter* filter); 111 ResourceMessageFilter* filter);
111 112
112 // ResourceDispatcherHost::Receiver implementation: 113 // ResourceDispatcherHost::Receiver implementation:
113 virtual URLRequestContext* GetRequestContext( 114 virtual URLRequestContext* GetRequestContext(
114 uint32 request_id, 115 uint32 request_id,
115 const ViewHostMsg_Resource_Request& request_data); 116 const ViewHostMsg_Resource_Request& request_data);
(...skipping 10 matching lines...) Expand all
126 // the GPU process, but haven't heard back about yet. 127 // the GPU process, but haven't heard back about yet.
127 std::queue<ChannelRequest> sent_requests_; 128 std::queue<ChannelRequest> sent_requests_;
128 129
129 // The pending synchronization requests we need to reply to. 130 // The pending synchronization requests we need to reply to.
130 std::queue<SynchronizationRequest> queued_synchronization_replies_; 131 std::queue<SynchronizationRequest> queued_synchronization_replies_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
133 }; 134 };
134 135
135 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698