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

Side by Side Diff: chrome/common/gpu_messages_internal.h

Issue 6076005: Mac: Don't hang gpu process on popup close under certain conditions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: final touches 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 | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | chrome/gpu/gpu_channel.h » ('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 #include <vector> 5 #include <vector>
6 #include <string> 6 #include <string>
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "chrome/common/gpu_video_common.h" 9 #include "chrome/common/gpu_video_common.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #if defined(OS_MACOSX) 52 #if defined(OS_MACOSX)
53 // Tells the GPU process that the browser process handled the swap 53 // Tells the GPU process that the browser process handled the swap
54 // buffers request with the given number. Note that it is possible 54 // buffers request with the given number. Note that it is possible
55 // for the browser process to coalesce frames; it is not guaranteed 55 // for the browser process to coalesce frames; it is not guaranteed
56 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message 56 // that every GpuHostMsg_AcceleratedSurfaceBuffersSwapped message
57 // will result in a buffer swap on the browser side. 57 // will result in a buffer swap on the browser side.
58 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, 58 IPC_MESSAGE_CONTROL3(GpuMsg_AcceleratedSurfaceBuffersSwappedACK,
59 int /* renderer_id */, 59 int /* renderer_id */,
60 int32 /* route_id */, 60 int32 /* route_id */,
61 uint64 /* swap_buffers_count */) 61 uint64 /* swap_buffers_count */)
62
63 // Tells the GPU process that the IOSurface of the buffer belonging to
64 // |renderer_route_id| a given id was destroyed, either by the user closing the
65 // tab hosting the surface, or by the renderer navigating to a new page.
66 IPC_MESSAGE_CONTROL2(GpuMsg_DidDestroySurface,
Ken Russell (switch to Gerrit) 2010/12/22 23:16:44 You might want to call this DidDestroyAcceleratedS
67 int /* renderer_id */,
68 int32 /* renderer_route_id */)
62 #endif 69 #endif
63 70
64 // Tells the GPU process to crash. 71 // Tells the GPU process to crash.
65 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 72 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
66 73
67 // Tells the GPU process to hang. 74 // Tells the GPU process to hang.
68 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 75 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
69 76
70 //------------------------------------------------------------------------------ 77 //------------------------------------------------------------------------------
71 // GPU Host Messages 78 // GPU Host Messages
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Release all video frames allocated for a hardware video decoder. 328 // Release all video frames allocated for a hardware video decoder.
322 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) 329 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames)
323 330
324 // GpuVideoDecoder report output format change. 331 // GpuVideoDecoder report output format change.
325 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, 332 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange,
326 GpuVideoDecoderFormatChangeParam) 333 GpuVideoDecoderFormatChangeParam)
327 334
328 // GpuVideoDecoder report error. 335 // GpuVideoDecoder report error.
329 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, 336 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification,
330 GpuVideoDecoderErrorInfoParam) 337 GpuVideoDecoderErrorInfoParam)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | chrome/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698