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

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

Issue 5275009: Defer window destruction until GPU finished drawing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with reference counting. Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/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) 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool Init(); 80 bool Init();
81 81
82 void OnControlMessageReceived(const IPC::Message& message); 82 void OnControlMessageReceived(const IPC::Message& message);
83 83
84 // Message handlers. 84 // Message handlers.
85 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, 85 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle,
86 const GPUInfo& gpu_info); 86 const GPUInfo& gpu_info);
87 void OnSynchronizeReply(); 87 void OnSynchronizeReply();
88 #if defined(OS_LINUX) 88 #if defined(OS_LINUX)
89 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); 89 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg);
90 void OnReleaseXID(unsigned long xid);
90 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); 91 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg);
91 #elif defined(OS_MACOSX) 92 #elif defined(OS_MACOSX)
92 void OnAcceleratedSurfaceSetIOSurface( 93 void OnAcceleratedSurfaceSetIOSurface(
93 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); 94 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params);
94 void OnAcceleratedSurfaceBuffersSwapped( 95 void OnAcceleratedSurfaceBuffersSwapped(
95 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); 96 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
96 #elif defined(OS_WIN) 97 #elif defined(OS_WIN)
97 void OnCreateCompositorHostWindow(int renderer_id, 98 void OnCreateCompositorHostWindow(int renderer_id,
98 int render_view_id, 99 int render_view_id,
99 IPC::Message* reply_message); 100 IPC::Message* reply_message);
(...skipping 26 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
« no previous file with comments | « no previous file | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698